|
|
|
@ -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(); |
|
|
|
|