|
@@ -562,10 +562,11 @@ class User extends Api
|
|
|
* @param string $platform 平台名称
|
|
|
* @param string $code Code码
|
|
|
*/
|
|
|
- /*public function third()
|
|
|
+ public function third()
|
|
|
{
|
|
|
$url = url('user/index');
|
|
|
- $platform = $this->request->post("platform");
|
|
|
+// $platform = $this->request->post("platform");
|
|
|
+ $platform = 'wechat';
|
|
|
$code = $this->request->post("code");
|
|
|
$config = get_addon_config('third');
|
|
|
if (!$config || !isset($config[$platform])) {
|
|
@@ -585,7 +586,7 @@ class User extends Api
|
|
|
}
|
|
|
}
|
|
|
$this->error(__('Operation failed'), $url);
|
|
|
- }*/
|
|
|
+ }
|
|
|
|
|
|
/**
|
|
|
* 重置密码
|