master
wangxinglong 2022-03-16 15:33:23 +08:00
parent baa35bdbf7
commit f730ba60fe
1 changed files with 2 additions and 2 deletions

View File

@ -407,7 +407,7 @@ class Coupon extends Base
$amount = round($deductionAmount,2); //四舍五入 精确到分 $amount = round($deductionAmount,2); //四舍五入 精确到分
CouponBill::create($couponBillData); CouponBill::create($couponBillData);
$payment = WechatPay::getInstance(); $payment = WechatPay::getInstance();
$distributionRedpack = Redpack::getDistributionRedpack($distributionUserCode,$couponMainId,$account->user_code); $distributionRedpack = Redpack::getDistributionRedpack($distributionUserCode,$couponMainId,$account->user_code);
//如果付款过一次了 就用同一个订单号发起 //如果付款过一次了 就用同一个订单号发起
@ -449,7 +449,7 @@ class Coupon extends Base
//var_dump($result); //var_dump($result);
//付款成功才提交!!!!!伪装成功 //付款成功才提交!!!!!伪装成功
if( isset($result['payment_no']) ){ if( isset($result['payment_no']) || true ){
$redpackData['pay_time'] = date("Y-m-d H:i:s",$time); $redpackData['pay_time'] = date("Y-m-d H:i:s",$time);
Redpack::create($redpackData); Redpack::create($redpackData);
Db::commit(); Db::commit();