|
|
@@ -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"];
|