Commit e4f713fa authored by 任国军's avatar 任国军

add paySign

parent 3ac38113
Pipeline #24469 passed with stage
in 4 seconds
...@@ -405,7 +405,7 @@ class UserService extends Service { ...@@ -405,7 +405,7 @@ class UserService extends Service {
const appId = await this.service.course.v5.wechat.getAppId(); const appId = await this.service.course.v5.wechat.getAppId();
const timeStamp = moment().unix(); const timeStamp = moment().unix();
const arr = [ `appId=${appId}`, `timeStamp=${timeStamp}`, `nonceStr=${response.nonce_str[0]}`, `package=prepay_id=${response.prepay_id[0]}` ]; const arr = [ `appId=${appId}`, `timeStamp=${timeStamp}`, `nonceStr=${response.nonce_str[0]}`, `package=prepay_id=${response.prepay_id[0]}`, 'signType=MD5' ];
const paySign = await this.service.course.v5.wechat.sign(arr); const paySign = await this.service.course.v5.wechat.sign(arr);
const ret = { const ret = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment