From 3cc43346505a1a06580e128ff4ee993bc2b27331 Mon Sep 17 00:00:00 2001 From: wangxinglong <2371974647@qq.com> Date: Wed, 16 Mar 2022 15:47:37 +0800 Subject: [PATCH] setter --- app/controller/api/Coupon.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/controller/api/Coupon.php b/app/controller/api/Coupon.php index d7175d2..92cfc40 100644 --- a/app/controller/api/Coupon.php +++ b/app/controller/api/Coupon.php @@ -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' => '用户核销优惠券,渠道商奖励', ];