作者 zhl

u

... ... @@ -33,9 +33,21 @@ class CNoticeController extends BaseController
/**
* 更新通知C端
* @param Request $request
* @param WebSettingLogic $webSettingLogic
* @return \Illuminate\Http\JsonResponse
*/
public function sendNotify(){
public function sendNotify(Request $request)
{
$url = $this->user['domain'].'api/update_page/';
$param = [
'project_id' => $this->user['project_id'],
'type' => intval($request->input('type', 1)),
'route' => intval($request->input('page', 1)),
'url' => $request->input('url', []),
'language'=> $request->input('language', []),
];
$result = http_post($url, $param);
return $this->response('更新中请稍后, 更新完成将会发送站内信通知更新结果!');
$updateProgressModel = new UpdateProgress();
$progressInfo = $updateProgressModel->formatQuery(['project_id'=>$this->user['project_id'],'type'=>$this->param['type']])->orderBy('id','desc')->first();
if((!empty($progressInfo))){
... ...