|
@@ -47,13 +47,10 @@ func AddYbApply(userId int, companyId int, mobile, email string, applyInfo model
|
|
|
sellerNameList := make([]string, 0)
|
|
|
statusList := make([]string, 0)
|
|
|
for _, companyProductInfo := range companyProductList {
|
|
|
- if companyProductInfo.ProductId == 2 && status == "潜在用户" {
|
|
|
- status = "权益用户"
|
|
|
- }
|
|
|
if companyProductInfo.ProductId == 1 {
|
|
|
sellerName = companyProductInfo.SellerName
|
|
|
status = companyProductInfo.Status
|
|
|
- if companyProductInfo.IsSuspend == 1 {
|
|
|
+ if companyProductInfo.IsSuspend == 1 && status== "试用"{
|
|
|
status = `试用暂停`
|
|
|
}
|
|
|
}
|
|
@@ -62,6 +59,10 @@ func AddYbApply(userId int, companyId int, mobile, email string, applyInfo model
|
|
|
sellerName = strings.Join(sellerNameList, ",")
|
|
|
status = strings.Join(statusList, ",")
|
|
|
}
|
|
|
+ if strings.Contains("正式,永续,试用", status){
|
|
|
+ brMsg ="正式、永续、试用状态 无需申请"
|
|
|
+ return
|
|
|
+ }
|
|
|
}
|
|
|
applyMethod := wxUserInfo.ApplyMethod //0:未申请,1:已付费客户申请试用,2:非客户申请试用
|
|
|
applyMethod = 2
|