更新
This commit is contained in:
parent
44c095af4f
commit
0d5405d21a
@ -7,7 +7,8 @@ use support\Request;
|
|||||||
use support\Response;
|
use support\Response;
|
||||||
use DI\Annotation\Inject;
|
use DI\Annotation\Inject;
|
||||||
use app\model\ThirdUserAdvertiser;
|
use app\model\ThirdUserAdvertiser;
|
||||||
use app\model\ThirdUser;
|
use app\model\ThirdUser as ThirdUserModel;
|
||||||
|
use think\facade\Db as ThinkDb;
|
||||||
|
|
||||||
class OAuthController
|
class OAuthController
|
||||||
{
|
{
|
||||||
@ -87,6 +88,26 @@ class OAuthController
|
|||||||
|
|
||||||
public function testRefreshToken(Request $request)
|
public function testRefreshToken(Request $request)
|
||||||
{
|
{
|
||||||
|
// $list = ThinkDb::table('bps.bps_third_user')->where('third_type', 'google')->select();
|
||||||
|
// return $this->successResponse($list);
|
||||||
|
|
||||||
|
// $user = new ThirdUserModel;
|
||||||
|
// $data = [
|
||||||
|
// ['access_token' => 'bar', 'third_type' => 'google'],
|
||||||
|
// ['access_token' => 'bar1', 'third_type' => 'google'],
|
||||||
|
// ['access_token' => 'bar2', 'third_type' => 'google']
|
||||||
|
// ];
|
||||||
|
// $user->saveAll($data);
|
||||||
|
|
||||||
|
//
|
||||||
|
//
|
||||||
|
// ThinkDb::table('bps.bps_third_user')->insertAll($data);
|
||||||
|
|
||||||
|
// ThinkDb::name('bps_third_user')
|
||||||
|
// ->update(['id' => 10, 'user_id' => 'bbb']);
|
||||||
|
//
|
||||||
|
// return $this->successResponse(['added' =>'success']);
|
||||||
|
|
||||||
// 使用 ThinkDb 进行联表查询
|
// 使用 ThinkDb 进行联表查询
|
||||||
// $advertiserId = 'your-advertiser-id'; // 假设你已经获得了广告商ID
|
// $advertiserId = 'your-advertiser-id'; // 假设你已经获得了广告商ID
|
||||||
$requestData = $request->all(); // 获取请求数据
|
$requestData = $request->all(); // 获取请求数据
|
||||||
|
Loading…
Reference in New Issue
Block a user