settter
parent
fd213a7b4b
commit
b2ea9bcf2f
|
@ -484,15 +484,17 @@ class Coupon extends Base
|
||||||
'amount' => $amount, //单位为分,不小于100
|
'amount' => $amount, //单位为分,不小于100
|
||||||
'desc' => '验证优惠券签到',
|
'desc' => '验证优惠券签到',
|
||||||
];
|
];
|
||||||
$result = $payment->transfer->toBalance($toBalanceData);
|
//不发起支付
|
||||||
|
//$result = $payment->transfer->toBalance($toBalanceData);
|
||||||
|
|
||||||
//var_dump($result);
|
//var_dump($result);
|
||||||
|
|
||||||
//付款成功才提交!!!!!伪装成功
|
//付款成功才提交!!!!!伪装成功
|
||||||
if(isset($result['payment_no']) || true ){
|
if(true||isset($result['payment_no']) ){
|
||||||
Db::commit();
|
Db::commit();
|
||||||
return $this->json(0,"优惠券签到使用成功,您获得{$consumerMoney}元红包,已存入您的零钱");
|
return $this->json(0,"优惠券签到使用成功,您获得{$consumerMoney}元红包,已存入您的零钱");
|
||||||
}
|
}
|
||||||
Log::info("企业发起付款失败:" . json_encode($result,JSON_UNESCAPED_UNICODE));
|
//Log::info("企业发起付款失败:" . json_encode($result,JSON_UNESCAPED_UNICODE));
|
||||||
}
|
}
|
||||||
|
|
||||||
//默认回滚
|
//默认回滚
|
||||||
|
|
Loading…
Reference in New Issue