|
@@ -509,7 +509,7 @@ func SendPermissionApplyTemplateMsgAdminByYxCategory(req models.ApplyTryReq, com
|
|
|
}()
|
|
|
|
|
|
//潜在客户、未开权益,已开FICC的客户推给王芳,开通权益的客户推给对应销售
|
|
|
- mobileOpneid := utils.WxMsgTemplateIdAskMsgMobilePublic
|
|
|
+ mobileOpenid := utils.WxMsgTemplateIdAskMsgMobilePublic
|
|
|
if companyId > 1 {
|
|
|
raiCount, e := models.GetCompanyProductCount(companyId, utils.COMPANY_PRODUCT_RAI_ID)
|
|
|
if e != nil {
|
|
@@ -529,14 +529,25 @@ func SendPermissionApplyTemplateMsgAdminByYxCategory(req models.ApplyTryReq, com
|
|
|
err = errors.New("GetSellerByAdminId, Err: " + e.Error())
|
|
|
return
|
|
|
}
|
|
|
- mobileOpneid = sealldetail.Mobile + "," + adminShare.Mobile
|
|
|
+ listSellerMobile, e := models.GetCygxSellerMobileMap()
|
|
|
+ if e != nil {
|
|
|
+ err = errors.New("GetCygxSellerMobileMap, Err: " + e.Error())
|
|
|
+ return
|
|
|
+ }
|
|
|
+ //mapMobile := make(map[string]string)
|
|
|
+ for _, vm := range listSellerMobile {
|
|
|
+ if adminShare.Mobile == vm.ServerMobile {
|
|
|
+ adminShare.Mobile = vm.Mobile
|
|
|
+ }
|
|
|
+ }
|
|
|
+ mobileOpenid = sealldetail.Mobile + "," + adminShare.Mobile
|
|
|
} else {
|
|
|
- mobileOpneid = sealldetail.Mobile
|
|
|
+ mobileOpenid = sealldetail.Mobile
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- openIdList, e := models.GetMfyxWxOpenIdByMobileList(mobileOpneid)
|
|
|
+ openIdList, e := models.GetMfyxWxOpenIdByMobileList(mobileOpenid)
|
|
|
if e != nil {
|
|
|
err = errors.New("GetMfyxWxOpenIdByMobileList, Err: " + e.Error())
|
|
|
return err
|