|
@@ -62,12 +62,11 @@ func (this *ResourcePack) ConsumePack() {
|
|
|
productName = "大客户平台"
|
|
|
}
|
|
|
resResp := config.Middleground.ResourceCenter.Haspowers(qutil.Int64All(this.GetSession("accountId")), qutil.Int64All(this.GetSession("entAccountId")),
|
|
|
- qutil.Int64All(this.GetString("entId")), qutil.Int64All(this.GetSession("entUserId")))
|
|
|
+ qutil.Int64All(this.GetSession("entId")), qutil.Int64All(this.GetSession("entUserId")))
|
|
|
if resResp != nil && strings.Contains(strings.Join(resResp.Powers, ","), "bi_yx_topnet") {
|
|
|
- log.Println("拓普查询--", resResp.Powers)
|
|
|
productName = "拓普情报权益"
|
|
|
}
|
|
|
- log.Println(infoType, "----", remarks)
|
|
|
+ log.Println("----ConsumePack----", infoType, remarks, productName)
|
|
|
Ret, Msg, Code := entity.JyConsumePack(userId, productName, platform, remarks, this.Session())
|
|
|
if Msg != "" && Code == 0 {
|
|
|
return nil, fmt.Sprintf("%s 使用异常:%s", productName, Msg)
|