|
@@ -1,15 +1,15 @@
|
|
|
package service
|
|
|
|
|
|
import (
|
|
|
+ . "app.yhyue.com/moapp/jybase/api"
|
|
|
+ qu "app.yhyue.com/moapp/jybase/common"
|
|
|
"app.yhyue.com/moapp/jybase/encrypt"
|
|
|
"encoding/json"
|
|
|
"fmt"
|
|
|
"jy/src/jfw/modules/publicapply/src/config"
|
|
|
"jy/src/jfw/modules/publicapply/src/userbase/entity"
|
|
|
"log"
|
|
|
-
|
|
|
- . "app.yhyue.com/moapp/jybase/api"
|
|
|
- qu "app.yhyue.com/moapp/jybase/common"
|
|
|
+ "strings"
|
|
|
)
|
|
|
|
|
|
// 大会员菜单
|
|
@@ -218,6 +218,28 @@ func (this *ServiceStruct) GetOriginalText() {
|
|
|
this.ServeJson(Result{Data: nil, Error_code: Error_code_1001, Error_msg: Error_msg_1001})
|
|
|
return
|
|
|
}
|
|
|
+ // 查询拓普权限,直接返回原文连接
|
|
|
+ resResp := config.Middleground.ResourceCenter.Haspowers(sessUser.AccountId, sessUser.EntAccountId, sessUser.EntId, sessUser.EntUserId)
|
|
|
+ if resResp != nil && strings.Contains(strings.Join(resResp.Powers, ","), "bi_yx_topnet") {
|
|
|
+ url = entity.GetOriginalTextUrl(biddingId)
|
|
|
+ if url == "" {
|
|
|
+ this.ServeJson(Result{
|
|
|
+ Data: map[string]interface{}{
|
|
|
+ "url": "",
|
|
|
+ "status": OriginalStatus5,
|
|
|
+ "surplus": 0,
|
|
|
+ },
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ //存记录
|
|
|
+ op.SavePowerRecord(url)
|
|
|
+ this.ServeJson(Result{Data: map[string]interface{}{
|
|
|
+ "url": url,
|
|
|
+ "surplus": 0,
|
|
|
+ }})
|
|
|
+ return
|
|
|
+ }
|
|
|
// 2. 获取用户类型对应的条数
|
|
|
// a. 查看过返回地址
|
|
|
hasRecord, textData := op.FindOriginalPowerRecord()
|