master
wangxinglong 2022-03-16 15:43:12 +08:00
parent 3be77ec876
commit 7864f7d1bf
1 changed files with 6 additions and 7 deletions

View File

@ -708,7 +708,6 @@ class Coupon extends Base
if($business->is_assign == BusinessModel::COMMON_ON && (empty($coupon->distribution_user_code))){ if($business->is_assign == BusinessModel::COMMON_ON && (empty($coupon->distribution_user_code))){
if(isset($business->agency) && $business->agency){ if(isset($business->agency) && $business->agency){
//$business->agency->inc("balance",$agencyMoney)->update(); //$business->agency->inc("balance",$agencyMoney)->update();
//6. 用户提现到零钱 写入红包记录
if($agencyMoney > 0) { if($agencyMoney > 0) {
//找到渠道商关联的用户 //找到渠道商关联的用户
$agencyUser = Account::findOne([ $agencyUser = Account::findOne([
@ -813,7 +812,7 @@ class Coupon extends Base
"mch_billno" => $mch_billno, "mch_billno" => $mch_billno,
"openid" => $account->open_id, "openid" => $account->open_id,
"user_code" => $account->user_code, "user_code" => $account->user_code,
"money" =>$amount, "money" => $consumerMoney,
"create_time" => date("Y-m-d H:i:s",$time), "create_time" => date("Y-m-d H:i:s",$time),
"pay_time" => '0000-00-00 00:00:00', "pay_time" => '0000-00-00 00:00:00',
]; ];