正在显示
1 个修改的文件
包含
16 行增加
和
0 行删除
| @@ -60,4 +60,20 @@ class Notice extends Command | @@ -60,4 +60,20 @@ class Notice extends Command | ||
| 60 | } | 60 | } |
| 61 | return true; | 61 | return true; |
| 62 | } | 62 | } |
| 63 | + | ||
| 64 | + /** | ||
| 65 | + * @remark :删除路由通知C端 | ||
| 66 | + * @name :curlDelRoute | ||
| 67 | + * @author :lyh | ||
| 68 | + * @method :post | ||
| 69 | + * @time :2023/11/30 14:43 | ||
| 70 | + */ | ||
| 71 | + public function curlDelRoute($domain,$project_id){ | ||
| 72 | + if (strpos($domain, 'https://') === false) { | ||
| 73 | + $domain = 'https://' . $domain . '/'; | ||
| 74 | + } | ||
| 75 | + $url = $domain.'api/update_page/?project_id='.$project_id.'&route=6'; | ||
| 76 | + shell_exec('curl -k "'.$url.'"'); | ||
| 77 | + return $this->success(); | ||
| 78 | + } | ||
| 63 | } | 79 | } |
-
请 注册 或 登录 后发表评论