This commit is contained in:
苏尹岚
2020-10-14 15:25:26 +08:00
parent 3fa46c9afd
commit cbe94c7916
4 changed files with 67 additions and 14 deletions

View File

@@ -1,8 +1,6 @@
package cms
import (
"fmt"
"git.rosy.net.cn/jx-callback/business/jxstore/financial"
"git.rosy.net.cn/jx-callback/business/jxutils"
@@ -51,11 +49,6 @@ func Pay(ctx *jxcontext.Context, orderID, payType int, vendorPayType string) (er
}
)
err = dao.GetEntity(db, order, "OrderID")
switch payType {
case model.PayTypeTL:
err = financial.Pay4OrderByTL(ctx, order, payType, vendorPayType)
default:
err = fmt.Errorf("支付方式:%d当前不支持", payType)
}
err = financial.IPayHandler.CreatePay(order, payType, vendorPayType)
return err
}