sync: port tangguo_server upstream changes
Ported 7 commits (3a79d6a..3dcf693) from tangguo_server: - 版本控制: comment out 2FA in admin.go - 支付和广告调试: pay/ad refactor across appg/adser/rechargeser/pingctrl - 对接统计: add bili_sync statistics endpoint - 代码优化: ginUtil improvements - 修改es/修改appID/代码调整: cumulative updates Preserved hgmj-local differences: - ES table prefix stays 91jd_ (not tangguo_) - BillPlatformID stays 91短剧 (not 糖果短剧) - admin googauth label stays @91短剧 - appg.go retains LouFengH5/DataBuriedPoint fields - rechargeser.go retains reportser event reporting Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -9,6 +9,7 @@ import (
|
||||
"fmt"
|
||||
"io"
|
||||
"net/http"
|
||||
"time"
|
||||
|
||||
"91jd-server/app/service/rechargeser"
|
||||
"91jd-server/common/log"
|
||||
@@ -44,6 +45,12 @@ func CallBack(ctx *gin.Context) {
|
||||
return "", err
|
||||
}
|
||||
rb.TransNo = rchgutil.RChgIDDisassemble(rb.TransNo)
|
||||
if rb.SuccessAt.IsZero() {
|
||||
rb.SuccessAt = time.Now()
|
||||
}
|
||||
if rb.PaymentAt.IsZero() {
|
||||
rb.PaymentAt = rb.SuccessAt
|
||||
}
|
||||
if err = rechargeser.RechargeCallBack(ctx, rb.OID, rb.PayMoney, rb.TransNo, rb.Code, rb.PaymentAt, rb.SuccessAt); err != nil {
|
||||
log.Error(fmt.Sprintf("%s RechargeCallBack fail error:%+v:", name, err))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user