更新
This commit is contained in:
parent
d1f64a7497
commit
aafadca94c
@ -11,6 +11,7 @@ use app\common\model\recharge\RechargeOrder;
|
||||
use app\common\model\retail\Cashierclass;
|
||||
use app\common\model\user\UserAuth;
|
||||
use app\common\service\wechat\WeChatConfigService;
|
||||
use app\Request;
|
||||
use EasyWeChat\Pay\Application;
|
||||
use EasyWeChat\Pay\Message;
|
||||
use support\Log;
|
||||
@ -234,10 +235,11 @@ class WeChatPayService extends BasePayService
|
||||
*/
|
||||
public function notify()
|
||||
{
|
||||
Log::error(json_encode(Request()->post()));
|
||||
|
||||
$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