正在显示
4 个修改的文件
包含
45 行增加
和
5 行删除
| @@ -232,4 +232,16 @@ class InquiryInfoController extends BaseController | @@ -232,4 +232,16 @@ class InquiryInfoController extends BaseController | ||
| 232 | $list = $inquiryInfoLogic->getKeywordUrl($this->map); | 232 | $list = $inquiryInfoLogic->getKeywordUrl($this->map); |
| 233 | $this->response('success',Code::SUCCESS,$list); | 233 | $this->response('success',Code::SUCCESS,$list); |
| 234 | } | 234 | } |
| 235 | + | ||
| 236 | + /** | ||
| 237 | + * @remark :获取询盘类型 | ||
| 238 | + * @name :getInquiryType | ||
| 239 | + * @author :lyh | ||
| 240 | + * @method :post | ||
| 241 | + * @time :2023/8/1 9:12 | ||
| 242 | + */ | ||
| 243 | + public function getInquiryType(InquiryInfoLogic $inquiryInfoLogic){ | ||
| 244 | + $list = $inquiryInfoLogic->getType(); | ||
| 245 | + $this->response('success',Code::SUCCESS,$list); | ||
| 246 | + } | ||
| 235 | } | 247 | } |
| @@ -7,6 +7,7 @@ use App\Models\GoogleSeoIps\InquiryUser; | @@ -7,6 +7,7 @@ use App\Models\GoogleSeoIps\InquiryUser; | ||
| 7 | use App\Models\Inquiry\InquiryCount; | 7 | use App\Models\Inquiry\InquiryCount; |
| 8 | use App\Models\Inquiry\InquiryInfo; | 8 | use App\Models\Inquiry\InquiryInfo; |
| 9 | use App\Models\Inquiry\InquiryIP; | 9 | use App\Models\Inquiry\InquiryIP; |
| 10 | +use App\Models\Inquiry\InquiryType; | ||
| 10 | use App\Models\Project\Keywords; | 11 | use App\Models\Project\Keywords; |
| 11 | use Illuminate\Support\Facades\DB; | 12 | use Illuminate\Support\Facades\DB; |
| 12 | 13 | ||
| @@ -24,11 +25,6 @@ class InquiryInfoLogic extends BaseLogic | @@ -24,11 +25,6 @@ class InquiryInfoLogic extends BaseLogic | ||
| 24 | parent::__construct(); | 25 | parent::__construct(); |
| 25 | $this->param = $this->requestAll; | 26 | $this->param = $this->requestAll; |
| 26 | $this->model = new InquiryInfo(); | 27 | $this->model = new InquiryInfo(); |
| 27 | - //TODO::测试数据 | ||
| 28 | - $this->manager = [ | ||
| 29 | - 'id'=>1, | ||
| 30 | - 'name'=>'cs' | ||
| 31 | - ]; | ||
| 32 | } | 28 | } |
| 33 | 29 | ||
| 34 | /** | 30 | /** |
| @@ -255,4 +251,18 @@ class InquiryInfoLogic extends BaseLogic | @@ -255,4 +251,18 @@ class InquiryInfoLogic extends BaseLogic | ||
| 255 | } | 251 | } |
| 256 | return $this->success($lists); | 252 | return $this->success($lists); |
| 257 | } | 253 | } |
| 254 | + | ||
| 255 | + /** | ||
| 256 | + * @remark :获取类型 | ||
| 257 | + * @name :getType | ||
| 258 | + * @author :lyh | ||
| 259 | + * @method :post | ||
| 260 | + * @time :2023/8/1 9:16 | ||
| 261 | + */ | ||
| 262 | + public function getType(){ | ||
| 263 | + $typeModel = new InquiryType(); | ||
| 264 | + $list = $typeModel->list(['status'=>0]); | ||
| 265 | + return $this->success($list); | ||
| 266 | + } | ||
| 267 | + | ||
| 258 | } | 268 | } |
app/Models/Inquiry/InquiryType.php
0 → 100644
| @@ -235,6 +235,7 @@ Route::middleware(['aloginauth'])->group(function () { | @@ -235,6 +235,7 @@ Route::middleware(['aloginauth'])->group(function () { | ||
| 235 | Route::any('/importInquirySave', [Aside\Optimize\InquiryInfoController::class, 'importInquirySave'])->name('admin.inquiry_importInquirySave'); | 235 | Route::any('/importInquirySave', [Aside\Optimize\InquiryInfoController::class, 'importInquirySave'])->name('admin.inquiry_importInquirySave'); |
| 236 | Route::any('/getSearchIpInfo', [Aside\Optimize\InquiryInfoController::class, 'getSearchIpInfo'])->name('admin.inquiry_getSearchIpInfo'); | 236 | Route::any('/getSearchIpInfo', [Aside\Optimize\InquiryInfoController::class, 'getSearchIpInfo'])->name('admin.inquiry_getSearchIpInfo'); |
| 237 | Route::any('/getKeywordUrl', [Aside\Optimize\InquiryInfoController::class, 'getKeywordUrl'])->name('admin.inquiry_getKeywordUrl'); | 237 | Route::any('/getKeywordUrl', [Aside\Optimize\InquiryInfoController::class, 'getKeywordUrl'])->name('admin.inquiry_getKeywordUrl'); |
| 238 | + Route::any('/getInquiryType', [Aside\Optimize\InquiryInfoController::class, 'getInquiryType'])->name('admin.inquiry_getInquiryType'); | ||
| 238 | }); | 239 | }); |
| 239 | 240 | ||
| 240 | //关键词查案例 | 241 | //关键词查案例 |
-
请 注册 或 登录 后发表评论