|
@@ -385,21 +385,19 @@ func vipSetMap(orderData map[string]interface{}) (set map[string]interface{}, se
|
|
setEntUser["l_vip_starttime"] = startdate.Unix()
|
|
setEntUser["l_vip_starttime"] = startdate.Unix()
|
|
setEntUser["l_vip_endtime"] = enddate.Unix()
|
|
setEntUser["l_vip_endtime"] = enddate.Unix()
|
|
setEntUser["i_vip_status"] = common.If(isTrial, -2, 2) //1试用 2正式 -2 试用到期
|
|
setEntUser["i_vip_status"] = common.If(isTrial, -2, 2) //1试用 2正式 -2 试用到期
|
|
- vms := VipSimpleMsg{}
|
|
|
|
|
|
+
|
|
|
|
+ vms := VipCycleFilter{}
|
|
json.Unmarshal([]byte(common.ObjToString(orderData["filter"])), &vms)
|
|
json.Unmarshal([]byte(common.ObjToString(orderData["filter"])), &vms)
|
|
- if vms.NewBuyset == nil { //704改版后新订单不包含此类信息
|
|
|
|
- newVms := VipCycleFilter{}
|
|
|
|
- json.Unmarshal([]byte(common.ObjToString(orderData["filter"])), &newVms)
|
|
|
|
- vms.NewBuyset = &SubvipBuySet{
|
|
|
|
- Upgrade: 1,
|
|
|
|
- AreaCount: newVms.FinalAreaCount,
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
set = map[string]interface{}{
|
|
set = map[string]interface{}{
|
|
"o_entniche": map[string]interface{}{
|
|
"o_entniche": map[string]interface{}{
|
|
- "i_trial": -1, //已激活试用
|
|
|
|
- //"o_area": *vms.Area, //设置地区
|
|
|
|
- "o_buyset": *vms.NewBuyset, //购买内容 城市、省份、行业数量
|
|
|
|
|
|
+ "i_trial": -1, //已激活试用
|
|
|
|
+ "o_area": map[string]interface{}{"北京": []interface{}{}}, //设置地区
|
|
|
|
+ "o_buyset": map[string]interface{}{
|
|
|
|
+ "upgrade": 1,
|
|
|
|
+ "areacount": vms.FinalAreaCount,
|
|
|
|
+ "newcitys": []int{},
|
|
|
|
+ "buyerclasscount": -1,
|
|
|
|
+ }, //购买内容 城市、省份、行业数量, //购买内容 城市、省份、行业数量
|
|
"a_buyerclass": []interface{}{}, //设置行业
|
|
"a_buyerclass": []interface{}{}, //设置行业
|
|
},
|
|
},
|
|
"i_vip_expire_tip": 0, //消息提示初始化
|
|
"i_vip_expire_tip": 0, //消息提示初始化
|