|
...
|
...
|
@@ -5,6 +5,8 @@ namespace App\Http\Controllers\Bside\Setting; |
|
|
|
use App\Enums\Common\Code;
|
|
|
|
use App\Http\Controllers\Bside\BaseController;
|
|
|
|
use App\Http\Logic\Bside\Setting\WebSettingLogic;
|
|
|
|
use App\Models\Com\UpdateNotify;
|
|
|
|
use Illuminate\Http\Request;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @name:项目首页设置
|
|
...
|
...
|
@@ -34,14 +36,16 @@ class WebSettingController extends BaseController |
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @remark :更新通知C端
|
|
|
|
* @name :updateNotify
|
|
|
|
* @author :lyh
|
|
|
|
* @method :post
|
|
|
|
* @time :2023/8/1 9:33
|
|
|
|
* 更新通知C端
|
|
|
|
* @param Request $request
|
|
|
|
* @param WebSettingLogic $webSettingLogic
|
|
|
|
*/
|
|
|
|
public function sendNotify(WebSettingLogic $webSettingLogic){
|
|
|
|
$list = $webSettingLogic->sendNotifyMessage();
|
|
|
|
public function sendNotify(Request $request, WebSettingLogic $webSettingLogic){
|
|
|
|
$type = $request->input('type', UpdateNotify::TYPE_MASTER);
|
|
|
|
if (FALSE == in_array($type, [UpdateNotify::TYPE_MASTER, UpdateNotify::TYPE_MINOR]))
|
|
|
|
$this->response('非法参数!', Code::USER_ERROR);
|
|
|
|
|
|
|
|
$list = $webSettingLogic->sendNotifyMessage($type);
|
|
|
|
if(!empty($list)){
|
|
|
|
$this->response('当前页面正在生成了,请完成后再点击',Code::USER_ERROR,$list);
|
|
|
|
}
|
...
|
...
|
|