diff --git a/common.js b/common.js index da7f8c1..928afc0 100644 --- a/common.js +++ b/common.js @@ -6454,7 +6454,14 @@ require("@babel/runtime/helpers/Arrayincludes"), (wx.webpackJsonp = wx.webpackJs ttid: "#t#ip##_h5_2014", tb_eagleeyex_scm_project: e.tag || m }; - return a && (s[a] = c), new p.p((0, r.A)((0, r.A)({}, i), {}, { + if (a) { + s[a] = c + } + console.log('s = ', s); + console.log('i = ', i); + console.log('t = ', t) + debugger + return new p.p((0, r.A)((0, r.A)({}, i), {}, { data: t, ext_querys: s, headers: { diff --git a/pages/custom/index.js b/pages/custom/index.js index 80fa77e..13fbd0c 100644 --- a/pages/custom/index.js +++ b/pages/custom/index.js @@ -4,6 +4,8 @@ const Ay = requireCustom(4752).Ay; Page({ data: { + globalCode: 'ali.china.damai', + ttid: '#t#ip##_h5_2014', getDetailParam: { api: 'mtop.alibaba.detail.subpage.getdetail', v: '2.0', @@ -24,7 +26,15 @@ Page({ timeout: 15e3, method: 'POST' }, - orderBuildResult: {} + orderBuildResult: {}, + orderCreateParam: { + api: 'mtop.damai.trade.order.create.h5', + v: '1.0', + data: {}, + timeout: 15e3, + method: 'POST' + }, + orderCreateResult: {} }, async onLoad(options) { let detailResult = await this.getDetail('1001240724661') @@ -121,10 +131,7 @@ Page({ ...param }).create(); }, - async buildOrder() { - const globalCode = 'ali.china.damai'; - const ttid = '#t#ip##_h5_2014'; - + buildOrder() { const itemBasicInfo = this.data.detailResult.itemBasicInfo; const perform = this.data.detailResult.perform; @@ -147,6 +154,36 @@ Page({ return new customRequest.p({ ...this.data.orderBuildParam, ...param, + ext_querys: { + ttid: this.data.ttid + }, + headers: { + globalCode: this.data.globalCode, + }, + ext_headers: { + globalCode: this.data.globalCode, + } + }).create(); + }, + createOrder() { + const global = this.data.orderBuildResult.global; + const param = { + + } + + const querys = { + isSec: 1, + AntiCreep: true, + ttid: this.data.ttid, + tb_eagleeyex_scm_project: '20190509-aone2-join-test' + } + + querys[global.secretKey] = global.secretValue; + + return new customRequest.p({ + ...this.data.orderBuildParam, + ...param, + data: {}, ext_querys: { ttid }, diff --git a/subPackages/order-pay/index.js b/subPackages/order-pay/index.js index e0d31ca..b342c70 100644 --- a/subPackages/order-pay/index.js +++ b/subPackages/order-pay/index.js @@ -7038,7 +7038,6 @@ require('../sub-vendors.js'), style: l.length - 1 === t ? {} : { marginBottom: '15px' }, onClick: function () { console.log("点击啊") - debugger return g(e, t) }, },