This commit is contained in:
hgc 2024-12-23 16:31:23 +08:00
parent 44c095af4f
commit 0d5405d21a

View File

@ -7,7 +7,8 @@ use support\Request;
use support\Response;
use DI\Annotation\Inject;
use app\model\ThirdUserAdvertiser;
use app\model\ThirdUser;
use app\model\ThirdUser as ThirdUserModel;
use think\facade\Db as ThinkDb;
class OAuthController
{
@ -87,6 +88,26 @@ class OAuthController
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 进行联表查询
// $advertiserId = 'your-advertiser-id'; // 假设你已经获得了广告商ID
$requestData = $request->all(); // 获取请求数据