|
@@ -222,7 +222,10 @@ func BuyProductList(this *entmanageapplication.BuyProductListReq) *entmanageappl
|
|
|
|
|
|
func addPower(waitEmpowerId int64, identity *usercenter.Identity) {
|
|
|
data := JyMysql.FindOne(EntnicheOrder, map[string]interface{}{"wait_empower_id": waitEmpowerId}, "", "create_time desc")
|
|
|
- if data != nil && len(*data) > 0 {
|
|
|
+ waitData := JyMysql.FindOne(EntnicheWaitEmpower, map[string]interface{}{"id": waitEmpowerId}, "start_time,end_time", "create_time desc")
|
|
|
+ if data != nil && len(*data) > 0 && waitData != nil && len(*waitData) > 0 {
|
|
|
+ (*data)["service_starttime"] = (*waitData)["start_time"]
|
|
|
+ (*data)["service_endtime"] = (*waitData)["end_time"]
|
|
|
orderId := common.Int64All((*data)["order_detail_id"])
|
|
|
orderData := JyMysql.FindOne(JyOrderDetail, map[string]interface{}{"id": orderId}, "", "")
|
|
|
if orderData != nil && len(*orderData) > 0 {
|