更新
This commit is contained in:
parent
8297ad2c54
commit
389bf25799
@ -15,6 +15,7 @@ use app\common\model\order\Cart;
|
||||
use app\common\model\retail\Cashierclass;
|
||||
use app\common\model\user\User;
|
||||
use app\common\service\wechat\WeChatConfigService;
|
||||
use support\Log;
|
||||
|
||||
class RetailOrderController extends BaseApiController
|
||||
{
|
||||
@ -111,7 +112,7 @@ class RetailOrderController extends BaseApiController
|
||||
$order_id = (int)$this->request->post('order_id');
|
||||
$pay_type = (int)$this->request->post('pay_type');
|
||||
$where=[
|
||||
'order_id'=>$order_id,
|
||||
'id'=>$order_id,
|
||||
'uid'=>$this->userId,
|
||||
'paid'=>0,
|
||||
];
|
||||
|
@ -13,7 +13,7 @@ use app\common\model\user\UserAuth;
|
||||
use app\common\service\wechat\WeChatConfigService;
|
||||
use EasyWeChat\Pay\Application;
|
||||
use EasyWeChat\Pay\Message;
|
||||
|
||||
use support\Log;
|
||||
|
||||
/**
|
||||
* 微信支付
|
||||
@ -237,6 +237,7 @@ class WeChatPayService extends BasePayService
|
||||
$server = $this->app->getServer();
|
||||
// 支付通知
|
||||
$server->handlePaid(function (Message $message) {
|
||||
Log::error($message);
|
||||
if ($message['trade_state'] === 'SUCCESS') {
|
||||
$extra['transaction_id'] = $message['transaction_id'];
|
||||
$attach = $message['attach'];
|
||||
|
Loading…
x
Reference in New Issue
Block a user