- 调整TransferLegacyWeixins的调用时机,只在UnbindMobile与BindMobile2调用
This commit is contained in:
@@ -121,7 +121,7 @@ func BindMobile2Store(ctx *jxcontext.Context, mobile string, storeID int) (num i
|
|||||||
}
|
}
|
||||||
if err == nil {
|
if err == nil {
|
||||||
jxutils.HandleUserWXRemark(db, mobile, false)
|
jxutils.HandleUserWXRemark(db, mobile, false)
|
||||||
TransferLegacyWeixins(mobile)
|
// TransferLegacyWeixins(mobile)
|
||||||
}
|
}
|
||||||
return num, err
|
return num, err
|
||||||
}
|
}
|
||||||
@@ -156,7 +156,7 @@ func AddMobile2Mobile(ctx *jxcontext.Context, parentMobile, mobile string) (num
|
|||||||
}
|
}
|
||||||
if err == nil {
|
if err == nil {
|
||||||
jxutils.HandleUserWXRemark(db, mobile, false)
|
jxutils.HandleUserWXRemark(db, mobile, false)
|
||||||
TransferLegacyWeixins(mobile)
|
// TransferLegacyWeixins(mobile)
|
||||||
}
|
}
|
||||||
return num, err
|
return num, err
|
||||||
}
|
}
|
||||||
@@ -167,10 +167,10 @@ func ChangeMobile(ctx *jxcontext.Context, curMobile, expectedMobile string) (num
|
|||||||
}, map[string]interface{}{
|
}, map[string]interface{}{
|
||||||
"Tel": curMobile,
|
"Tel": curMobile,
|
||||||
})
|
})
|
||||||
if err == nil {
|
// if err == nil {
|
||||||
TransferLegacyWeixins(curMobile)
|
// TransferLegacyWeixins(curMobile)
|
||||||
TransferLegacyWeixins(expectedMobile)
|
// TransferLegacyWeixins(expectedMobile)
|
||||||
}
|
// }
|
||||||
return num, err
|
return num, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user