正在显示
3 个修改的文件
包含
16 行增加
和
2 行删除
| @@ -90,7 +90,7 @@ class GeoQuestionController extends BaseController | @@ -90,7 +90,7 @@ class GeoQuestionController extends BaseController | ||
| 90 | * @param : keywords->提交的关键字 | 90 | * @param : keywords->提交的关键字 |
| 91 | * @param : status->状态(0:可执行 1:禁止执行) | 91 | * @param : status->状态(0:可执行 1:禁止执行) |
| 92 | * @param : project_id->项目id | 92 | * @param : project_id->项目id |
| 93 | - * @param : type->类型(1:品牌 2:营销) | 93 | + * @param : type->类型() |
| 94 | */ | 94 | */ |
| 95 | public function saveGeoQuestion(){ | 95 | public function saveGeoQuestion(){ |
| 96 | $this->request->validate([ | 96 | $this->request->validate([ |
| @@ -40,7 +40,6 @@ class GeoQuestionResController extends BaseController | @@ -40,7 +40,6 @@ class GeoQuestionResController extends BaseController | ||
| 40 | public function getType(){ | 40 | public function getType(){ |
| 41 | $questionModel = new GeoQuestion(); | 41 | $questionModel = new GeoQuestion(); |
| 42 | $data['type'] = $questionModel->brandType(); | 42 | $data['type'] = $questionModel->brandType(); |
| 43 | - $data['frequency'] = $questionModel->frequency; | ||
| 44 | $geoPlatformModel = new GeoPlatform(); | 43 | $geoPlatformModel = new GeoPlatform(); |
| 45 | $data['platform'] = $geoPlatformModel->getList(); | 44 | $data['platform'] = $geoPlatformModel->getList(); |
| 46 | return $this->success($data); | 45 | return $this->success($data); |
| @@ -39,6 +39,21 @@ class GeoLogic extends BaseLogic | @@ -39,6 +39,21 @@ class GeoLogic extends BaseLogic | ||
| 39 | } | 39 | } |
| 40 | 40 | ||
| 41 | /** | 41 | /** |
| 42 | + * @remark :获取类型 | ||
| 43 | + * @name :getType | ||
| 44 | + * @author :lyh | ||
| 45 | + * @method :post | ||
| 46 | + * @time :2025/7/3 10:47 | ||
| 47 | + */ | ||
| 48 | + public function getType(){ | ||
| 49 | + $data['type'] = $this->model->brandType(); | ||
| 50 | + $data['frequency'] = $this->model->frequency; | ||
| 51 | + $geoPlatformModel = new GeoPlatform(); | ||
| 52 | + $data['platform'] = $geoPlatformModel->getList(); | ||
| 53 | + return $this->success($data); | ||
| 54 | + } | ||
| 55 | + | ||
| 56 | + /** | ||
| 42 | * @remark :获取问题列表 | 57 | * @remark :获取问题列表 |
| 43 | * @name :getGeoQuestionList | 58 | * @name :getGeoQuestionList |
| 44 | * @author :lyh | 59 | * @author :lyh |
-
请 注册 或 登录 后发表评论