作者 lyh

hx

... ... @@ -178,8 +178,4 @@ class ComController extends BaseController
$this->response('success',Code::SUCCESS,$str);
}
public function ceshi(){
return $this->request->route()->getAction();
// return Route::currentRouteName();
}
}
... ...
... ... @@ -32,4 +32,16 @@ class WebSettingController extends BaseController
$webSettingLogic->setting_save();
$this->response('success');
}
/**
* @remark :更新通知C端
* @name :updateNotify
* @author :lyh
* @method :post
* @time :2023/8/1 9:33
*/
public function updateNotify(WebSettingLogic $webSettingLogic){
$webSettingLogic->sendNotifyMessage();
$this->response('success');
}
}
... ...
... ... @@ -4,6 +4,7 @@ namespace App\Http\Logic\Bside\Setting;
use App\Helper\Common as CommonHelper;
use App\Http\Logic\Bside\BaseLogic;
use App\Models\UpdateNotify;
use App\Models\WebSetting\WebSetting;
class WebSettingLogic extends BaseLogic
... ... @@ -55,4 +56,16 @@ class WebSettingLogic extends BaseLogic
CommonHelper::del_user_cache($this->model->getTable(),$this->user['project_id']);
return $this->success();
}
/**
* @remark :通知c端
* @name :sendNotifyMessage
* @author :lyh
* @method :post
* @time :2023/8/1 9:36
*/
public function sendNotifyMessage(){
$urlStr = $this->user['domain'].'api/updateHtmlNotify?project_id='.$this->user['project_id'];
return http_get($urlStr);
}
}
... ...