浏览代码

修复提交订单时suid传undefined的问题

DELL 3 年之前
父节点
当前提交
ae07e3f7bc
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      src/components/pay-popup/pay-popup.vue
  2. 1 1
      src/pages/lucky/index.vue

+ 1 - 1
src/components/pay-popup/pay-popup.vue

@@ -124,7 +124,7 @@
 				});
 				if (payIng) return
 				$http.post('/api/v1/mp/user/ticket/order/submit', {
-					suid: uni.getStorageSync('shareUid'),
+					suid: uni.getStorageSync('shareUid')?uni.getStorageSync('shareUid'):null,
 					type: uni.getStorageSync('shareType')
 				}).then(res => {
 					uni.hideLoading();

+ 1 - 1
src/pages/lucky/index.vue

@@ -254,7 +254,7 @@
 					if (res.code == 0) {
 						if (res.data.payAmt == 0) {
 							$http.post('/api/v1/mp/user/ticket/order/submit', {
-								suid: uni.getStorageSync('shareUid'),
+								suid: uni.getStorageSync('shareUid')?uni.getStorageSync('shareUid'):null,
 								type: uni.getStorageSync('shareType')
 							}).then(res => {
 								uni.hideLoading();