This commit is contained in:
richboo111
2022-07-28 18:05:27 +08:00
parent 990101655e
commit 4bbf80c7a4

View File

@@ -108,11 +108,13 @@ func Pay(ctx *jxcontext.Context, orderID string, payType int, vendorPayType, app
}()
// 给用户创建一个银行卡账户
globals.SugarLogger.Debug("create bill begin……")
userBill, err := dao.GetUserBill(db, order.UserID, "")
if userBill == nil {
err = financial.AddUserBill(txDB, jxutils.GenBillID(), order.UserID)
}
err = payHandler.CreatePay(txDB, appId)
globals.SugarLogger.Debug("errrrrr=========================", err)
dao.Commit(db, txDB)
globals.SugarLogger.Debug("the last step of this program,return err……", err)
globals.SugarLogger.Debugf("result : %v", utils.Format4Output(payHandler.WxPayParam, false))