|
@@ -253,7 +253,6 @@ func CheckAutoAudit(ctx context.Context, orderData map[string]interface{}, produ
|
|
|
log.Println("自动审核不通过signing_subject:", orderData["signing_subject"])
|
|
|
return false
|
|
|
}
|
|
|
- isEnt := gconv.Int(orderData["buy_subject"]) == 2
|
|
|
var (
|
|
|
insertData []map[string]interface{}
|
|
|
activityProduct = make(map[string][]map[string]interface{})
|
|
@@ -261,8 +260,11 @@ func CheckAutoAudit(ctx context.Context, orderData map[string]interface{}, produ
|
|
|
beforePrice, afterPrice float64
|
|
|
giftDiscountRate []float64
|
|
|
)
|
|
|
-
|
|
|
+ //isEnt := gconv.Int(orderData["buy_subject"]) == 2
|
|
|
for _, m := range productList {
|
|
|
+ if common.IntAll(m["service_type"]) == 3 {
|
|
|
+ return false
|
|
|
+ }
|
|
|
productItem, err := service.Product().GetProduct(gconv.String(m["product_code"]))
|
|
|
if err != nil {
|
|
|
return false
|
|
@@ -310,8 +312,8 @@ func CheckAutoAudit(ctx context.Context, orderData map[string]interface{}, produ
|
|
|
switch productType := common.InterfaceToStr(m["product_type"]); productType {
|
|
|
case "VIP订阅":
|
|
|
switch common.IntAll(m["service_type"]) {
|
|
|
- case 3: //升级
|
|
|
- monthCount = GetUserTime(gconv.String(orderData["user_phone"]), gconv.String(m["linked_detail_id"]), true, isEnt)
|
|
|
+ //case 3: //升级
|
|
|
+ // monthCount = GetUserTime(gconv.String(orderData["user_phone"]), gconv.String(m["linked_detail_id"]), true, isEnt)
|
|
|
default:
|
|
|
cycleType = common.If(common.IntAll(filterMap["buy_type"]) > 0, common.IntAll(filterMap["buy_type"]), common.IntAll(filterMap["give_type"])).(int) //1天 2月 3年 4季度
|
|
|
cycleCount = common.IntAll(filterMap["buy_cycle"]) + common.IntAll(filterMap["give_cycle"])
|
|
@@ -347,8 +349,8 @@ func CheckAutoAudit(ctx context.Context, orderData map[string]interface{}, produ
|
|
|
}
|
|
|
//大会员 createType:1新建 2补充 3延长
|
|
|
switch common.IntAll(m["service_type"]) {
|
|
|
- case 3: //升级
|
|
|
- monthCount = GetUserTime(gconv.String(orderData["user_phone"]), gconv.String(orderData["linked_detail_id"]), true, isEnt)
|
|
|
+ //case 3: //升级
|
|
|
+ // monthCount = GetUserTime(gconv.String(orderData["user_phone"]), gconv.String(orderData["linked_detail_id"]), true, isEnt)
|
|
|
default:
|
|
|
cycleType = common.If(common.IntAll(filterMap["buy_type"]) > 0, common.IntAll(filterMap["buy_type"]), common.IntAll(filterMap["give_type"])).(int) //1天 2月 3年 4季度
|
|
|
cycleCount = common.IntAll(filterMap["buy_cycle"]) + common.IntAll(filterMap["give_cycle"])
|