Browse Source

test

three
huangjiajun 1 year ago
parent
commit
b717a449fb
1 changed files with 10 additions and 1 deletions
  1. +10
    -1
      consume/zhios_recharge_order_fail.go

+ 10
- 1
consume/zhios_recharge_order_fail.go View File

@@ -88,7 +88,8 @@ func handleZhiosRechargeOrderFail(msg []byte) error {
//查询官方接口看看有没有订单 //查询官方接口看看有没有订单
param, aggregationRechargeApiKey := CommAggregation(eg, mid) param, aggregationRechargeApiKey := CommAggregation(eg, mid)
param["out_trade_nums"] = oid param["out_trade_nums"] = oid
order, err := recharge.GetOrder(aggregationRechargeApiKey, param)
aggregationRechargeApiUrl := GetApiUrl()
order, err := recharge.GetOrder(aggregationRechargeApiUrl, aggregationRechargeApiKey, param)
utils.FilePutContents(mid+"rech", utils.SerializeStr(param)) utils.FilePutContents(mid+"rech", utils.SerializeStr(param))
utils.FilePutContents(mid+"rech", aggregationRechargeApiKey) utils.FilePutContents(mid+"rech", aggregationRechargeApiKey)
utils.FilePutContents(mid+"rech", utils.SerializeStr(order)) utils.FilePutContents(mid+"rech", utils.SerializeStr(order))
@@ -116,6 +117,14 @@ func handleZhiosRechargeOrderFail(msg []byte) error {
} }
return nil return nil
} }
func GetApiUrl() string {
aggregationRechargeApiUrl := ""
aggregationRechargeApiUrlData := offical.SysCfgByKey("aggregation_recharge_api_url")
if aggregationRechargeApiUrlData != nil {
aggregationRechargeApiUrl = aggregationRechargeApiUrlData.V
}
return aggregationRechargeApiUrl
}
func ZyRechargeMoneyDeal(mid string, orderId string, uid int, officalAmount float64, types int, title, orderType string) error { func ZyRechargeMoneyDeal(mid string, orderId string, uid int, officalAmount float64, types int, title, orderType string) error {
info := offical.GetAggregationUserInfo(mid) info := offical.GetAggregationUserInfo(mid)
if info == nil { if info == nil {


Loading…
Cancel
Save