diff --git a/Laravel/app/Http/Controllers/TestController.php b/Laravel/app/Http/Controllers/TestController.php index fed6128..db5a4aa 100644 --- a/Laravel/app/Http/Controllers/TestController.php +++ b/Laravel/app/Http/Controllers/TestController.php @@ -14,15 +14,24 @@ use Illuminate\Support\Facades\Http; class TestController extends Controller { - public function DBtest(){ - - $peis = new PEISApiController(); - $data = [ - '电话号码' => "", - '证件号码' => "130321199502212117" - ]; - $reports = $peis::Post('团检登记查询', 1, $data); - dd($reports); + public function ztest() + { + $ha = 'HAHA'; + return \Yz::Return(true, '获取成功', [ + 'a' => $ha + ]); + } + + public function DBtest() + { + + $peis = new PEISApiController(); + $data = [ + '电话号码' => "", + '证件号码' => "130321199502212117" + ]; + $reports = $peis::Post('团检登记查询', 1, $data); + dd($reports); // echo DB::table('users')->count(); @@ -33,7 +42,7 @@ class TestController extends Controller // "action" => "1" // ]); // return \Yz::Return(true,"",['data'=>$res]); - //退款------------------ + //退款------------------ // $data = [ // 'orderid' => '20241223082331336avdQwL', // 'refund_order_id' => 'T' . '20241223082331336avdQwL', @@ -46,40 +55,40 @@ class TestController extends Controller // if ($res['data']['refund_state'] != 'SUCCESS') { // return \Yz::echoError1("退款失败" . $res['data']['refund_state']); // } - //-------------- + //-------------- - $aspnet=new AspNetZhuanController(); + $aspnet = new AspNetZhuanController(); // $res = $aspnet->GetPersonInfo([ // "zjh" => "", // "action" => "2", // "ghzid"=>"" // ]); - // $res=$aspnet::SendYanZhengMaCode(1,"19933509886"); - $data_array = [ - "action" => "1", - "yyid" => "6", - "ghzid" => "e159c45a2fe1449ba20698f141f22f01", - "YYDH" => "13383280827", - "YYXM" => "蒋成龙", - "YYXB" => "男", - "YYSR" => "1988-08-26", - "YYNL" => "36岁", - "YYZJ" => "130322198808264210", - "YYRQ" => "2024-10-31", - "YYSJ" => "20:00", - "YYSJ_B" => "20:00:00", - "YYSJ_E" => "20:00:00", - "YYSJ_BE" => "20:00-20:00" - ]; - $data2=[ - "action" => "2", - "yyid" => "6", - "ghzid" => "e159c45a2fe1449ba20698f141f22f01", - "ID"=>"86d64cff41bb47e0ba3d482e5ce957b5" - ]; - $res = $aspnet->HunjianHis($data2); - - dd($res); + // $res=$aspnet::SendYanZhengMaCode(1,"19933509886"); + $data_array = [ + "action" => "1", + "yyid" => "6", + "ghzid" => "e159c45a2fe1449ba20698f141f22f01", + "YYDH" => "13383280827", + "YYXM" => "蒋成龙", + "YYXB" => "男", + "YYSR" => "1988-08-26", + "YYNL" => "36岁", + "YYZJ" => "130322198808264210", + "YYRQ" => "2024-10-31", + "YYSJ" => "20:00", + "YYSJ_B" => "20:00:00", + "YYSJ_E" => "20:00:00", + "YYSJ_BE" => "20:00-20:00" + ]; + $data2 = [ + "action" => "2", + "yyid" => "6", + "ghzid" => "e159c45a2fe1449ba20698f141f22f01", + "ID" => "86d64cff41bb47e0ba3d482e5ce957b5" + ]; + $res = $aspnet->HunjianHis($data2); + + dd($res); //优惠券----------------- // $data=[ // 'action'=>4, @@ -102,12 +111,11 @@ class TestController extends Controller // ]; // } - //弃检 - // $service = new ComboItemGroupService(); + //弃检 + // $service = new ComboItemGroupService(); // dd($service->QiJian("2411090001","张三",['1812'])); - // $peis = new PEISApiController(); // $data = [ // '电话号码' => "", @@ -134,9 +142,10 @@ class TestController extends Controller // ]; // $aspnet::YouHuiQuan($data); - } + } - public function ApiTest(){ - return \Yz::Return(true, '获取成功'); - } + public function ApiTest() + { + return \Yz::Return(true, '获取成功'); + } } diff --git a/Laravel/routes/web-zhao.php b/Laravel/routes/web-zhao.php index 8078594..7e7725f 100644 --- a/Laravel/routes/web-zhao.php +++ b/Laravel/routes/web-zhao.php @@ -2,6 +2,7 @@ use Illuminate\Support\Facades\Route; +Route::any('/api/ha', 'App\Http\Controllers\TestController@ztest'); Route::any('/api/test', 'App\Http\Controllers\TestController@ApiTest'); Route::post("/api/Fz/change", [\App\Http\Controllers\H5\FenzhenController::class, 'check_in_action']);