更新 测试接口

main
鹿和sa0ChunLuyu 6 months ago
parent 3bc33185ac
commit be5919da93

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

@ -2,6 +2,7 @@
use Illuminate\Support\Facades\Route; use Illuminate\Support\Facades\Route;
Route::any('/api/ha', 'App\Http\Controllers\TestController@ztest');
Route::any('/api/test', 'App\Http\Controllers\TestController@ApiTest'); Route::any('/api/test', 'App\Http\Controllers\TestController@ApiTest');
Route::post("/api/Fz/change", [\App\Http\Controllers\H5\FenzhenController::class, 'check_in_action']); Route::post("/api/Fz/change", [\App\Http\Controllers\H5\FenzhenController::class, 'check_in_action']);

Loading…
Cancel
Save