更新
This commit is contained in:
1 parent
5718a00e31
commit
1850ac640e
226 files changed
+37772
-12071
No files matched your search
@@ -10,6 +10,7 @@ import (
|
||||
"time"
|
||||
|
||||
"server/models"
|
||||
"server/pkg/identity"
|
||||
"server/pkg/jwtutil"
|
||||
"server/services/payment"
|
||||
|
||||
@@ -51,7 +52,8 @@ func reconcileDiffDTO(row *models.PlatformPaymentReconcileDiff) map[string]inter
|
||||
// ListReconcile GET /platform/payment/reconcile 对账差异列表
|
||||
func (c *PlatformPaymentReconcileController) ListReconcile() {
|
||||
if _, err := c.platformClaims(); err != nil {
|
||||
c.jsonErr(401, 401, err.Error())
|
||||
code := identity.Status(err)
|
||||
c.jsonErr(code, code, err.Error())
|
||||
return
|
||||
}
|
||||
page, _ := strconv.Atoi(c.GetString("page", "1"))
|
||||
@@ -82,7 +84,8 @@ func (c *PlatformPaymentReconcileController) ListReconcile() {
|
||||
func (c *PlatformPaymentReconcileController) HandleReconcile() {
|
||||
claims, err := c.platformClaims()
|
||||
if err != nil {
|
||||
c.jsonErr(401, 401, err.Error())
|
||||
code := identity.Status(err)
|
||||
c.jsonErr(code, code, err.Error())
|
||||
return
|
||||
}
|
||||
id, err := strconv.ParseUint(c.Ctx.Input.Param(":id"), 10, 64)
|
||||
@@ -113,7 +116,8 @@ func (c *PlatformPaymentReconcileController) HandleReconcile() {
|
||||
// RunReconcile POST /platform/payment/reconcile/run 执行对账比对
|
||||
func (c *PlatformPaymentReconcileController) RunReconcile() {
|
||||
if _, err := c.platformClaims(); err != nil {
|
||||
c.jsonErr(401, 401, err.Error())
|
||||
code := identity.Status(err)
|
||||
c.jsonErr(code, code, err.Error())
|
||||
return
|
||||
}
|
||||
body, _ := io.ReadAll(c.Ctx.Request.Body)
|
||||
@@ -139,7 +143,8 @@ func (c *PlatformPaymentReconcileController) RunReconcile() {
|
||||
// 两种方式:multipart 上传 CSV(字段 file + channel + bill_date),或 JSON {channel, bill_date, rows:[...]}
|
||||
func (c *PlatformPaymentReconcileController) ImportBill() {
|
||||
if _, err := c.platformClaims(); err != nil {
|
||||
c.jsonErr(401, 401, err.Error())
|
||||
code := identity.Status(err)
|
||||
c.jsonErr(code, code, err.Error())
|
||||
return
|
||||
}
|
||||
var channel, billDate string
|
||||
|
||||
Reference in new issue
Block a user