瀏覽代碼

test

master
huangjiajun 1 年之前
父節點
當前提交
aa86094b8c
共有 2 個檔案被更改,包括 6 行新增2 行删除
  1. +5
    -2
      app/svc/platform/svc_withdrawal.go
  2. +1
    -0
      go.mod

+ 5
- 2
app/svc/platform/svc_withdrawal.go 查看文件

@@ -34,12 +34,12 @@ func WithdrawalIncome(c *gin.Context) {
if amountMap["is_show_official_amount"] == "1" {
var tmp = map[string]string{"name": "账户一余额", "value": amountMap["amount"], "type": "amount", "tip": "", "alipay": amountMap["alipay"], "alipay_name": amountMap["alipay_name"], "is_need_bing_alipay": isNeedBingAlipay, "is_show_withdrawal": "1"}
res = append(res, tmp)
if utils.StrToInt(amountMap["puid"]) > 0 {
if amountMap["is_show_agent_amount"] == "1" {
var tmpAgent = map[string]string{"name": "账户二余额", "value": amountMap["agent_amount"], "type": "agent_amount", "tip": "", "alipay": amountMap["alipay"], "alipay_name": amountMap["alipay_name"], "is_need_bing_alipay": isNeedBingAlipay, "is_show_withdrawal": "1"}
res = append(res, tmpAgent)
}
} else {
var tmpAgent = map[string]string{"name": "账户余额", "value": amountMap["agent_amount"], "type": "agent_amount", "tip": "", "alipay": amountMap["alipay"], "alipay_name": amountMap["alipay_name"], "is_need_bing_alipay": isNeedBingAlipay, "is_show_withdrawal": "1"}
var tmpAgent = map[string]string{"name": "账户余额", "value": amountMap["agent_amount"], "type": "agent_amount", "tip": "", "alipay": amountMap["alipay"], "alipay_name": amountMap["alipay_name"], "is_need_bing_alipay": isNeedBingAlipay, "is_show_withdrawal": "1"}
res = append(res, tmpAgent)
}
res = append(res, map[string]string{"name": "上月预估收益", "value": monthAmountMap["last_month_amount"], "type": "last_month_amount", "tip": "", "is_need_bing_alipay": "0", "is_show_withdrawal": "0"})
@@ -382,7 +382,10 @@ func masterAmount(mid, types string) map[string]string {
res["agent_amount"] = "0"
res["is_show_official_amount"] = "1"
res["puid"] = puid
res["is_show_agent_amount"] = "0"
if utils.StrToInt(puid) > 0 && hwOwnOpen == "1" {
res["is_show_agent_amount"] = "1"

agentMasterAmounts := masterAmountDb.GetMasterAmountByExtendUid(masterInfos["id"], puid, types)
if agentMasterAmounts != nil {
if agentMasterAmounts.Amount != "" {


+ 1
- 0
go.mod 查看文件

@@ -25,6 +25,7 @@ require (
github.com/robfig/cron/v3 v3.0.1
github.com/sony/sonyflake v1.1.0
github.com/syyongx/php2go v0.9.7
github.com/tealeg/xlsx v1.0.5 // indirect
github.com/tidwall/gjson v1.14.1
go.uber.org/zap v1.16.0
golang.org/x/lint v0.0.0-20191125180803-fdd1cda4f05f // indirect


Loading…
取消
儲存