Parcourir la source

下线流调数据查重功能

sandm il y a 3 ans
Parent
commit
275d40e8ad
2 fichiers modifiés avec 3 ajouts et 1 suppressions
  1. 2 0
      app/Http/Controllers/Web/Talent/JjhcController.php
  2. 1 1
      routes/web.php

+ 2 - 0
app/Http/Controllers/Web/Talent/JjhcController.php

@@ -25,6 +25,8 @@ class JjhcController extends WebBaseController
 
     public function chaxun(Request $request)
     {
+        $data = array('msg'=>'查无此用户!','status' => 0);
+        return response()->json($data);
         $info = DB::connection('fangyi')->table('fillinfo')
             ->where(['lxdh'=>$request->tel])->first();
         if($info){

+ 1 - 1
routes/web.php

@@ -889,7 +889,7 @@ Route::group([
 Route::group([
     'prefix' =>  '/jjhc',
 ], function (Router $router){
-    $router->get('/bOQ4J1CqySjkWDKh', 'Web\Talent\JjhcController@yqfk')->name('talent.jjhc.yqfk');
+    /*$router->get('/bOQ4J1CqySjkWDKh', 'Web\Talent\JjhcController@yqfk')->name('talent.jjhc.yqfk');*/
     $router->post('/yqfk/chaxun', 'Web\Talent\JjhcController@chaxun')->name('talent.jjhc.chaxun');
     $router->get('/test', 'Web\Talent\JjhcController@test')->name('talent.jjhc.test');
 });