From c933d992e6840f5afdf57ff6e900d8ed7787afb5 Mon Sep 17 00:00:00 2001 From: wang hou sheng <76928547+wanghousheng@users.noreply.github.com> Date: Tue, 30 Apr 2024 00:46:29 +0800 Subject: [PATCH] 1 --- app/api/controller/Wxwholesaler.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/api/controller/Wxwholesaler.php b/app/api/controller/Wxwholesaler.php index a07630be..ebcff926 100644 --- a/app/api/controller/Wxwholesaler.php +++ b/app/api/controller/Wxwholesaler.php @@ -7,8 +7,9 @@ use app\common\model\WxwholesalerAccount; use think\db\exception\DataNotFoundException; use think\db\exception\DbException; use think\db\exception\ModelNotFoundException; +use think\facade\Db; -class Wxwholesaler +class Wxwholesaler extends Controller { public function verifyTicket() @@ -28,6 +29,7 @@ class Wxwholesaler */ public function redirect() { + Db::table('yoshop_wx_server')->insertGetId(['content' => '进入授权回调', 'created_at' => date('Y-m-d H:i:s')]); $authorization_code = $this->request->get('auth_code'); if ($authorization_code) { $obj = new \app\common\library\wxserver\Wholesaler();