|
@@ -154,13 +154,7 @@ func (this *vipSubscribeStruct) PayCallBack(param *CallBackParam) bool {
|
|
|
|
|
|
//设置开始使用vip订阅
|
|
|
func (this *vipSubscribeStruct) StartSubVip(userId string, vmsg VipSimpleMsg, startTime, endTime time.Time, isTrial bool) bool {
|
|
|
- buyset := &SubvipBuySet{}
|
|
|
- if !isTrial { //购买
|
|
|
- buyset = JyVipSubStruct.NewBuySet(vmsg.Area, vmsg.Industry)
|
|
|
- } else { //试用
|
|
|
- buyset.AreaCount = -1 //城市数量
|
|
|
- buyset.BuyerclassCount = -1 //行业数量
|
|
|
- }
|
|
|
+ buyset := JyVipSubStruct.NewBuySet(vmsg.Area, vmsg.Industry)
|
|
|
if !util.MQFW.UpdateById("user", userId,
|
|
|
bson.M{"$set": bson.M{
|
|
|
"o_vipjy.i_trial": -1, //已激活试用
|