wangchuanjin пре 1 година
родитељ
комит
0ac9465158
1 измењених фајлова са 2 додато и 1 уклоњено
  1. 2 1
      service/service.go

+ 2 - 1
service/service.go

@@ -602,12 +602,13 @@ func ResourcePowerHandle(identity *usercenter.Identity, waitEmpowerId, t int64)
 	if JyMysql.CountBySql(`select count(1) as count from `+EntnicheWaitEmpower+` where id=? and product_type=?`, waitEmpowerId, YYSSJDZYFX) > 0 {
 		log.Println("-------", identity.EntId, waitEmpowerId, t)
 		if t == 1 {
-			cc := entity.ResourceRpc.Empower(context.Background(), &pb.EmpowerReq{
+			cc, err := entity.ResourceRpc.Empower(context.Background(), &pb.EmpowerReq{
 				Appid:        "10000",
 				FunctionCode: "bi_sj_yyszs",
 				EntId:        identity.EntId,
 				EntUserId:    []int64{identity.EntUserId},
 			})
+			log.Println(err, fmt.Sprintf("%+v", cc))
 		} else {
 			entity.ResourceRpc.CancelEmpower(context.Background(), &pb.EmpowerReq{
 				Appid:        "10000",