master
wangxinglong 2022-03-16 15:47:37 +08:00
parent 3ced7151ff
commit 3cc4334650
1 changed files with 2 additions and 3 deletions

View File

@ -632,7 +632,7 @@ class Coupon extends Base
$agencyMoney = 0; //四舍五入 精确到分
}
return $this->json(4001,"$agencyMoney");
//开始数据操作
Db::startTrans();
try {
@ -728,13 +728,12 @@ class Coupon extends Base
$mch_billno = createUuid();
}
$agencyAmount = $agencyMoney ;
$agencyToBalanceData = [
'partner_trade_no' => $mch_billno,// 商户订单号,需保持唯一性(只能是字母或者数字,不能包含有符号)
'openid' => $agencyUser->open_id,
'check_name' => 'NO_CHECK',// NO_CHECK不校验真实姓名, FORCE_CHECK强校验真实姓名
'amount' => $agencyAmount * 100, //单位为分不小于100
'amount' => $agencyMoney * 100, //单位为分不小于100
'desc' => '用户核销优惠券,渠道商奖励',
];