Commit 23ba43bb authored by wildfirecode13's avatar wildfirecode13

1

parent d8a47ae5
......@@ -300,10 +300,10 @@ export const getUserAddress = async (opts = {}) => {
let _opts = Object.assign({}, defaults, opts);
return new Promise((resolve, reject) => {
my.authorize({
scopes: 'scope.addressList',
scopes: 'scope.addressList',
success: () => {
const { addAddress, searchAddress, locateAddress, joinTag } = _opts;
if (!my.tb || !my.tb.chooseAddress) {
if (!my.tb.chooseAddress) {
reject({
noSupport: true,
errorMessage: '当前版本不支持选择收货地址,请升级到最新版本'
......@@ -336,9 +336,6 @@ export const getUserAddress = async (opts = {}) => {
reject(res);
}
);
},
fail: err => {
reject(err);
}
});
});
......
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