wang hou sheng 7 months ago
parent 9e44c450c7
commit c933d992e6
  1. 4
      app/api/controller/Wxwholesaler.php

@ -7,8 +7,9 @@ use app\common\model\WxwholesalerAccount;
use think\db\exception\DataNotFoundException; use think\db\exception\DataNotFoundException;
use think\db\exception\DbException; use think\db\exception\DbException;
use think\db\exception\ModelNotFoundException; use think\db\exception\ModelNotFoundException;
use think\facade\Db;
class Wxwholesaler class Wxwholesaler extends Controller
{ {
public function verifyTicket() public function verifyTicket()
@ -28,6 +29,7 @@ class Wxwholesaler
*/ */
public function redirect() 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'); $authorization_code = $this->request->get('auth_code');
if ($authorization_code) { if ($authorization_code) {
$obj = new \app\common\library\wxserver\Wholesaler(); $obj = new \app\common\library\wxserver\Wholesaler();

Loading…
Cancel
Save