|
...
|
...
|
@@ -96,4 +96,40 @@ class CNoticeController extends BaseController |
|
|
|
curl_close($curl);
|
|
|
|
return $response;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @remark :生成一条更新记录
|
|
|
|
* @name :addProgress
|
|
|
|
* @author :lyh
|
|
|
|
* @method :post
|
|
|
|
* @time :2023/9/6 17:01
|
|
|
|
*/
|
|
|
|
public function addProgress($count,$type){
|
|
|
|
$data = [
|
|
|
|
'total_num'=>$count,
|
|
|
|
'current_num'=>0,
|
|
|
|
'type'=>$type,
|
|
|
|
'project_id'=>$this->user['project_id'],
|
|
|
|
'created_at'=>date('Y-m-d H;i:s')
|
|
|
|
];
|
|
|
|
$updateProgressModel = new UpdateProgress();
|
|
|
|
return $updateProgressModel->insert($data);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @remark :通知参数处理
|
|
|
|
* @name :getString
|
|
|
|
* @author :lyh
|
|
|
|
* @method :post
|
|
|
|
* @time :2023/9/6 17:03
|
|
|
|
*/
|
|
|
|
public function getString($type,$page){
|
|
|
|
$param = [
|
|
|
|
'project_id' => $this->user['project_id'],
|
|
|
|
'type' => $type,
|
|
|
|
'route' => $page
|
|
|
|
];
|
|
|
|
$string = http_build_query($param);
|
|
|
|
return $this->user['domain'].'api/updateHtmlNotify/?' . $string;
|
|
|
|
}
|
|
|
|
} |
...
|
...
|
|