Browse Source

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

DELL 3 years ago
parent
commit
ae07e3f7bc
2 changed files with 2 additions and 2 deletions
  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
 				if (payIng) return
 				$http.post('/api/v1/mp/user/ticket/order/submit', {
 				$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')
 					type: uni.getStorageSync('shareType')
 				}).then(res => {
 				}).then(res => {
 					uni.hideLoading();
 					uni.hideLoading();

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

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