xuzhiheng 2 жил өмнө
parent
commit
c171462f44
1 өөрчлөгдсөн 5 нэмэгдсэн , 1 устгасан
  1. 5 1
      service/service.go

+ 5 - 1
service/service.go

@@ -133,9 +133,13 @@ func BuyProductList(this *entmanageapplication.BuyProductListReq) *entmanageappl
 	arr := []*entmanageapplication.BuyProductList{}
 	if data != nil && len(*data) > 0 {
 		for _, v := range *data {
+			product_type := common.ObjToString(v["product_type"])
+			if product_type == "VIP订阅" {
+				product_type = "超级订阅"
+			}
 			obj := &entmanageapplication.BuyProductList{
 				WaitEmpowerId: common.Int64All(v["id"]),
-				ProductType:   common.ObjToString(v["product_type"]),
+				ProductType:   product_type,
 				UseCount:      common.Int64All(v["use_count"]),
 				EmpowerCount:  common.Int64All(v["empower_count"]),
 				ProvinceCount: common.Int64All(v["province_count"]),