|
...
|
...
|
@@ -9,6 +9,7 @@ use App\Http\Controllers\Bside\BaseController; |
|
|
|
use App\Http\Logic\Bside\User\UserLogic;
|
|
|
|
use App\Models\Project\DeployBuild;
|
|
|
|
use App\Models\Project\Project;
|
|
|
|
use App\Models\RouteMap\RouteMap;
|
|
|
|
use App\Models\User\ProjectMenu as ProjectMenuModel;
|
|
|
|
use App\Models\User\ProjectRole as ProjectRoleModel;
|
|
|
|
use App\Models\User\User;
|
|
...
|
...
|
@@ -207,4 +208,36 @@ class ComController extends BaseController |
|
|
|
$str = $common->encrypt($data);
|
|
|
|
$this->response('success',Code::SUCCESS,['str'=>$str]);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @remark :获取访问链接
|
|
|
|
* @name :getLink
|
|
|
|
* @author :lyh
|
|
|
|
* @method :post
|
|
|
|
* @time :2023/11/10 15:18
|
|
|
|
*/
|
|
|
|
public function getLink(){
|
|
|
|
$this->request->validate([
|
|
|
|
'type' => 'required',
|
|
|
|
], [
|
|
|
|
'type.required' => '类型不能为空',
|
|
|
|
]);
|
|
|
|
switch ($this->param['type']){
|
|
|
|
case 'news':
|
|
|
|
$url_link = $this->user['domain'].RouteMap::SOURCE_NEWS.'/';
|
|
|
|
break;
|
|
|
|
case 'news_category':
|
|
|
|
$url_link = $this->user['domain'].RouteMap::PATH_NEWS_CATE.'/';
|
|
|
|
break;
|
|
|
|
case 'blog':
|
|
|
|
$url_link = $this->user['domain'].RouteMap::SOURCE_BLOG.'/';
|
|
|
|
break;
|
|
|
|
case 'blog_category':
|
|
|
|
$url_link = $this->user['domain'].RouteMap::PATH_BLOG_CATE.'/';
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
$url_link = $this->user['domain'];
|
|
|
|
}
|
|
|
|
$this->response('success',Code::SUCCESS,['url'=>$url_link]);
|
|
|
|
}
|
|
|
|
} |
...
|
...
|
|