|
@@ -566,7 +566,10 @@
|
|
|
var addressId = uni.getStorageSync('addressId');
|
|
|
if (addressId === '') {
|
|
|
addressId = 0;
|
|
|
- }
|
|
|
+ }else if (typeof addressId === 'number') {
|
|
|
+ } else if ( (typeof addressId === 'string'&& addressId.indexOf("{") !== -1)||addressId.length>20) {
|
|
|
+ addressId = JSON.parse(addressId).id;
|
|
|
+ }
|
|
|
var couponId = uni.getStorageSync('couponId');
|
|
|
if (couponId === '') {
|
|
|
couponId = 0;
|