|
...
|
...
|
@@ -25,7 +25,7 @@ class BaseController extends Controller |
|
|
|
protected $page = 1;//当前页
|
|
|
|
protected $row = 20;//每页条数
|
|
|
|
protected $header = [];//设置请求头参数
|
|
|
|
protected $order = 'id';
|
|
|
|
protected $order = 'created_at';
|
|
|
|
protected $map = [];//处理后的参数
|
|
|
|
protected $uid = 0;
|
|
|
|
protected $user = [];//当前登录用户详情
|
|
...
|
...
|
@@ -221,10 +221,12 @@ class BaseController extends Controller |
|
|
|
* @time :2023/6/6 14:09
|
|
|
|
*/
|
|
|
|
public function projectUrlNotify($param){
|
|
|
|
$deployBuildModel = new DeployBuild();
|
|
|
|
$info = $deployBuildModel->read(['project_id'=>1]);
|
|
|
|
$url = $info['test_domain'].'api/updateHtmlNotify?model='.$param;
|
|
|
|
return http_get($url);
|
|
|
|
$domain = $this->getProjectDomain();
|
|
|
|
if(!empty($domain)){
|
|
|
|
$url = $domain.'api/updateHtmlNotify?model='.$param;
|
|
|
|
return http_get($url);
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getProjectDomain(){
|
...
|
...
|
|