xuzhiheng 2 年之前
父节点
当前提交
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"]),