shen 1 жил өмнө
parent
commit
ab220eb675

+ 0 - 1
app/Console/Kernel.php

@@ -115,7 +115,6 @@ class Kernel extends ConsoleKernel
                     'phone_code'=>$phone_code,
 
                 ]);
-
             }
             Log::error('结束处理手机号');
         })->hourly();

+ 1 - 1
app/Handlers/EcommerceBillHandler.php

@@ -28,8 +28,8 @@ class EcommerceBillHandler extends Command
         ];
         $result=$handle->curl($url,'',$header,'GET');
         $res=json_decode($result,true);
-        Log::info($res);
         if(!array_key_exists('download_bill_list', $res)){
+            Log::info($res);
             return $res;
         }
         Log::info($bill_date.'下载资金账单,页数为'.count($res['download_bill_list']));

+ 0 - 7
app/Http/Controllers/Admin/TestUserController.php

@@ -14,11 +14,4 @@ class TestUserController extends Controller
         return $this->success_list([],'',0);
     }
 
-    public function down(Request $request){
-            $date=$request->input('date');
-            Log::info('下载二级商户资金账单,日期:'.$date);
-            $eco  = new EcommerceBillHandler();
-            $res = $eco -> getecommercebill($date,'ALL','AEAD_AES_256_GCM');
-            return [$date, $res];
-    }
 }

+ 0 - 1
routes/admin.php

@@ -52,7 +52,6 @@ Route::fallback(function(){
 
         $api->group(['prefix' => 'test_user'], function ($api) {
             $api->get('index', 'TestUserController@index');
-            $api->get('down', 'TestUserController@down');
         });
 
         $api->group(['prefix' => 'role'], function ($api) {