Просмотр исходного кода

Merge branch 'master' into huangfamily

family 1 год назад
Родитель
Сommit
0136f86a99

Разница между файлами не показана из-за своего большого размера
+ 166 - 0
app/common/repositories/user/UserRepository.php


+ 8 - 4
app/controller/api/store/product/Jt.php

@@ -43,10 +43,14 @@ class Jt extends BaseController
43 43
     public function __construct(App $app)
44 44
     {
45 45
         parent::__construct($app);
46
-        $this->jttAppId = '2012251037214523';
47
-        $this->jttAppKey = '0800cae09b49da38ef384a8170149d78';
48
-        $this->unionId = '1003309121';
49
-        $this->token = '5ce3da55dc739b6e7d9021d59618c5fa70f064fb9156c8a24e932f74f735d92de73585d1d15d82f1';
46
+//        $this->jttAppId = '2012251037214523';
47
+//        $this->jttAppKey = '0800cae09b49da38ef384a8170149d78';
48
+//        $this->unionId = '1003309121';
49
+//        $this->token = '5ce3da55dc739b6e7d9021d59618c5fa70f064fb9156c8a24e932f74f735d92de73585d1d15d82f1';
50
+        $this->jttAppId = '2502151659465349';
51
+        $this->jttAppKey = 'cf212b4cf1c4b3f4ad1ca326f055a196';
52
+        $this->unionId = '2036254684';
53
+        $this->token = 'a7c43c21f3e156d2fd41dfbe884b9f620250dae2369a4c989f8cfe7597c3af235d324ef0113c5d60';
50 54
         $this->userThird = app()->make(UserThirdRepository::class);
51 55
     }
52 56
 

+ 5 - 5
app/controller/api/store/product/TaoKe.php

@@ -30,10 +30,10 @@ class TaoKe extends BaseController
30 30
     public function __construct(App $app)
31 31
     {
32 32
         parent::__construct($app);
33
-//        $this->clientId = '37d1fa73af80497ba17bc39ed832310d';
34
-//        $this->clientSecret = '0654e9101c6cb9d1cd7379e91f596027b3d4d5d7';
35
-        $this->clientId = 'e87a7f3bea3d4866be1ebcd6297c236f';
36
-        $this->clientSecret = 'bc906432b1db7f2c417fa4e7f258d3b29374d464';
33
+        $this->clientId = '592b62c0ff7346b195e6ccbf20eac831';
34
+        $this->clientSecret = 'ab956c0a0bde976a264e5597338b0e2920466572';
35
+//        $this->clientId = 'e87a7f3bea3d4866be1ebcd6297c236f';
36
+//        $this->clientSecret = 'bc906432b1db7f2c417fa4e7f258d3b29374d464';
37 37
         $this->userThird = app()->make(UserThirdRepository::class);
38 38
     }
39 39
 
@@ -589,7 +589,7 @@ class TaoKe extends BaseController
589 589
         $params = [
590 590
             'number' => 1,
591 591
 //            'p_id_name_list' => json_encode([env("APP_URL")."-".$uid])
592
-            'p_id_name_list' => json_encode(["https://api.hxxfb.com"."-".$uid])
592
+            'p_id_name_list' => json_encode(["https://api.hxxfb.com".time()."-".$uid])
593 593
         ];
594 594
         log::info("=============apiName===+======");
595 595
         log::info($apiName);

+ 1 - 0
app/controller/api/user/User.php

@@ -2587,6 +2587,7 @@ class User extends BaseController
2587 2587
                 $check = Db::name("user")->where("ali_user_id", $unionId)->find();
2588 2588
                 if ($check) throw new \Exception("此支付宝号已被绑定");
2589 2589
                 $paramStr = $userRepository->getTokenByCode($alinfo["authCode"], true);
2590
+                $userRepository->getTokenByCodeWithCert($alinfo["authCode"], true);
2590 2591
 //                \think\facade\Db::name('log')->insert(['data'=>'支付宝授权信息'.json_encode($paramStr)]);
2591 2592
                 $nickname = empty($paramStr["nick_name"]) ? "al" . $alinfo["userId"] : $paramStr["nick_name"];
2592 2593
                 $avater = empty($paramStr["avatar"]) ? "https://cdn.bjtdba.com/vod/image/2025-01-21/20250121180855764.png" : $paramStr["avatar"];