jufubao-third 1.0.17-beta5 → 1.0.17

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jufubao-third",
3
- "version": "1.0.17-beta5",
3
+ "version": "1.0.17",
4
4
  "private": false,
5
5
  "description": "聚福宝业务组件第三方购物平台包",
6
6
  "main": "index.js",
@@ -275,8 +275,8 @@ export default {
275
275
  ) {
276
276
  const {host, deploy_dir} = this.brandInfo;
277
277
  const success_url = `https://${host}/${deploy_dir}${this.orderSuccessPath}?order_id=${res['order_id']}`;
278
- if(res['pay_url'].indexOf('?') > -1) url += `&success_url=${Base64.encodeURI(success_url)}`;
279
- else url += `?success_url=${Base64.encodeURI(success_url)}`;
278
+ if(res['pay_url'].indexOf('?') > -1) url += `&success_url=${Base64.encodeURI(success_url)}&callback_url=${encodeURIComponent(success_url)}`;
279
+ else url += `?success_url=${Base64.encodeURI(success_url)}&callback_url=${encodeURIComponent(success_url)}`;
280
280
  url = `/pages/jumptomp/jumptomp?callback=${Base64.encodeURI(url)}&isThird=1`;
281
281
  }
282
282
  //#endif