|
@@ -221,8 +221,8 @@ func BuyProductList(this *entmanageapplication.BuyProductListReq) *entmanageappl
|
|
|
func addPower(waitEmpowerId int64, identity *usercenter.Identity) {
|
|
|
data := JyMysql.FindOne(EntnicheOrder, map[string]interface{}{"wait_empower_id": waitEmpowerId}, "", "")
|
|
|
if data != nil && len(*data) > 0 {
|
|
|
- orderId := common.Int64All((*data)["order_id"])
|
|
|
- orderData := JyMysql.FindOne(Order, map[string]interface{}{"id": orderId}, "", "")
|
|
|
+ orderId := common.Int64All((*data)["product_id"])
|
|
|
+ orderData := JyMysql.FindOne(JyOrderDetail, map[string]interface{}{"id": orderId}, "", "")
|
|
|
if orderData != nil && len(*orderData) > 0 {
|
|
|
productType := common.ObjToString((*orderData)["product_type"])
|
|
|
if productType == "VIP订阅" {
|
|
@@ -362,8 +362,8 @@ func setRule(identity *usercenter.Identity, set, setEntUser map[string]interface
|
|
|
|
|
|
func vipSetMap(orderData map[string]interface{}) (set map[string]interface{}, setEntUser map[string]interface{}) {
|
|
|
set, setEntUser = map[string]interface{}{}, map[string]interface{}{}
|
|
|
- startTime := common.ObjToString(orderData["vip_starttime"])
|
|
|
- endTime := common.ObjToString(orderData["vip_endtime"])
|
|
|
+ startTime := common.ObjToString(orderData["service_starttime"])
|
|
|
+ endTime := common.ObjToString(orderData["service_endtime"])
|
|
|
Date_Full_Layout := "2006-01-02 15:04:05"
|
|
|
startdate, _ := time.ParseInLocation(Date_Full_Layout, startTime, time.Local)
|
|
|
enddate, _ := time.ParseInLocation(Date_Full_Layout, endTime, time.Local)
|
|
@@ -406,8 +406,8 @@ func memberSetMap(userId, waitEmpowerId int64, orderData map[string]interface{})
|
|
|
comboId := common.IntAll((*filterMap)["comboId"])
|
|
|
payCycle := common.IntAll((*filterMap)["cycle"])
|
|
|
serversId := common.ObjToString((*filterMap)["serversId"])
|
|
|
- startTime := common.ObjToString(orderData["vip_starttime"])
|
|
|
- endTime := common.ObjToString(orderData["vip_endtime"])
|
|
|
+ startTime := common.ObjToString(orderData["service_starttime"])
|
|
|
+ endTime := common.ObjToString(orderData["service_endtime"])
|
|
|
tmp := "2006-01-02 15:04:05"
|
|
|
startdate, _ := time.ParseInLocation(tmp, startTime, time.Local)
|
|
|
enddate, _ := time.ParseInLocation(tmp, endTime, time.Local)
|