作者 lyh

Merge branch 'master' of http://47.244.231.31:8099/zhl/globalso-v6 into develop

... ... @@ -65,6 +65,7 @@ class FormGlobalsoApi
}
try {
$res = HttpUtils::get($api_url, $params);
@file_put_contents(storage_path('logs/lyh_error.log'), var_export($res, true) . PHP_EOL, FILE_APPEND);
$res = Arr::s2a($res);
} catch (\Exception | GuzzleException $e) {
errorLog('询盘列表', $params, $e);
... ...
... ... @@ -14,7 +14,6 @@ class WebSettingLogic extends BaseLogic
public function __construct()
{
parent::__construct();
$this->model = new WebSetting();
$this->param = $this->requestAll;
}
... ... @@ -26,13 +25,9 @@ class WebSettingLogic extends BaseLogic
* @time :2023/4/28 15:14
*/
public function setting_read(){
$info = CommonHelper::get_user_cache($this->model->getTable(),$this->user['project_id']);
if(empty($info)){
$info = $this->model->read(['project_id'=>$this->user['project_id']]);
if($info === false){
$info = [];
}
CommonHelper::set_user_cache($info,$this->model->getTable(),$this->user['project_id']);
$info = $this->model->read(['project_id'=>$this->user['project_id']]);
if($info === false){
$info = [];
}
return $this->success($info);
}
... ...