@pisell/pisellos 0.0.5 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -8,7 +8,7 @@ export interface RequestPlugin extends Plugin {
|
|
|
8
8
|
* @param url 请求地址
|
|
9
9
|
* @param options 请求选项
|
|
10
10
|
*/
|
|
11
|
-
get: <T = any>(url: string, options?: RequestOptions) => Promise<T>;
|
|
11
|
+
get: <T = any>(url: string, data?: any, options?: RequestOptions) => Promise<T>;
|
|
12
12
|
/**
|
|
13
13
|
* 发起 POST 请求
|
|
14
14
|
* @param url 请求地址
|
|
@@ -93,7 +93,7 @@ export var BuyTicketsImpl = /*#__PURE__*/function (_BaseModule) {
|
|
|
93
93
|
while (1) switch (_context2.prev = _context2.next) {
|
|
94
94
|
case 0:
|
|
95
95
|
_context2.next = 2;
|
|
96
|
-
return this.request.post(
|
|
96
|
+
return this.request.post('/product/query', {
|
|
97
97
|
ids: ids,
|
|
98
98
|
open_quotation: 1,
|
|
99
99
|
open_bundle: 1,
|
package/lib/plugins/request.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ export interface RequestPlugin extends Plugin {
|
|
|
8
8
|
* @param url 请求地址
|
|
9
9
|
* @param options 请求选项
|
|
10
10
|
*/
|
|
11
|
-
get: <T = any>(url: string, options?: RequestOptions) => Promise<T>;
|
|
11
|
+
get: <T = any>(url: string, data?: any, options?: RequestOptions) => Promise<T>;
|
|
12
12
|
/**
|
|
13
13
|
* 发起 POST 请求
|
|
14
14
|
* @param url 请求地址
|
|
@@ -54,7 +54,7 @@ var BuyTicketsImpl = class extends import_BaseModule.BaseModule {
|
|
|
54
54
|
// 通过 ids 获取产品,在当前解决方案下,获取到的就是主商品
|
|
55
55
|
async loadProductsByIds(ids) {
|
|
56
56
|
const productsData = await this.request.post(
|
|
57
|
-
|
|
57
|
+
"/product/query",
|
|
58
58
|
{
|
|
59
59
|
ids,
|
|
60
60
|
open_quotation: 1,
|