- 调整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 {
|
||||
jxutils.HandleUserWXRemark(db, mobile, false)
|
||||
TransferLegacyWeixins(mobile)
|
||||
// TransferLegacyWeixins(mobile)
|
||||
}
|
||||
return num, err
|
||||
}
|
||||
@@ -156,7 +156,7 @@ func AddMobile2Mobile(ctx *jxcontext.Context, parentMobile, mobile string) (num
|
||||
}
|
||||
if err == nil {
|
||||
jxutils.HandleUserWXRemark(db, mobile, false)
|
||||
TransferLegacyWeixins(mobile)
|
||||
// TransferLegacyWeixins(mobile)
|
||||
}
|
||||
return num, err
|
||||
}
|
||||
@@ -167,10 +167,10 @@ func ChangeMobile(ctx *jxcontext.Context, curMobile, expectedMobile string) (num
|
||||
}, map[string]interface{}{
|
||||
"Tel": curMobile,
|
||||
})
|
||||
if err == nil {
|
||||
TransferLegacyWeixins(curMobile)
|
||||
TransferLegacyWeixins(expectedMobile)
|
||||
}
|
||||
// if err == nil {
|
||||
// TransferLegacyWeixins(curMobile)
|
||||
// TransferLegacyWeixins(expectedMobile)
|
||||
// }
|
||||
return num, err
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user