|
|
@ -63,9 +63,10 @@ class User extends Api |
|
|
|
if (!$account || !$password) { |
|
|
|
if (!$account || !$password) { |
|
|
|
$this->error(__('Invalid parameters')); |
|
|
|
$this->error(__('Invalid parameters')); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
$site = Config::get("site"); |
|
|
|
$config = [ |
|
|
|
$config = [ |
|
|
|
'app_id' => 'wx183e3fbc925f1ba3', |
|
|
|
'app_id' => $site['wx_appid'], |
|
|
|
'secret' => 'b3e26edaa7642673dd98a951564e02c7', |
|
|
|
'secret' => $site['wx_secrect'], |
|
|
|
// 指定 API 调用返回结果的类型:array(default)/collection/object/raw/自定义类名 |
|
|
|
// 指定 API 调用返回结果的类型:array(default)/collection/object/raw/自定义类名 |
|
|
|
'response_type' => 'array', |
|
|
|
'response_type' => 'array', |
|
|
|
]; |
|
|
|
]; |
|
|
|