|
|
|
|
@ -4,6 +4,7 @@ namespace App\Http\Controllers;
|
|
|
|
|
|
|
|
|
|
use App\Http\Controllers\API\AspNetZhuanController;
|
|
|
|
|
use App\Http\Controllers\API\PEISApiController;
|
|
|
|
|
use App\Http\Controllers\API\XCXApiController;
|
|
|
|
|
use App\Services\OrderService;
|
|
|
|
|
use Illuminate\Http\Request;
|
|
|
|
|
use Illuminate\Support\Facades\DB;
|
|
|
|
|
@ -12,9 +13,19 @@ class TestController extends Controller
|
|
|
|
|
{
|
|
|
|
|
public function DBtest(){
|
|
|
|
|
// echo DB::table('users')->count();
|
|
|
|
|
$order= new OrderService();
|
|
|
|
|
dd($order->DepartmentItemCount(173));
|
|
|
|
|
|
|
|
|
|
// $order= new OrderService();
|
|
|
|
|
// dd($order->DepartmentItemCount(173));
|
|
|
|
|
$data = [
|
|
|
|
|
'orderid' => '20241102173349589IKvqRo',
|
|
|
|
|
'refund_order_id' => 'T' . '20241102173349589IKvqRo',
|
|
|
|
|
'refund_amount' => 200,
|
|
|
|
|
'refund_reason' => "体检H5订单退款",
|
|
|
|
|
];
|
|
|
|
|
$XCX = new XCXApiController();
|
|
|
|
|
$res = $XCX::Post('订单退款', $data);
|
|
|
|
|
if ($res['data']['refund_state'] != 'SUCCESS') {
|
|
|
|
|
return \Yz::echoError1("退款失败" . $res['data']['refund_state']);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$aspnet=new AspNetZhuanController();
|
|
|
|
|
// $temp_list=[];
|
|
|
|
|
@ -30,14 +41,14 @@ class TestController extends Controller
|
|
|
|
|
|
|
|
|
|
// $peis = new PEISApiController();
|
|
|
|
|
// dd($peis::Get($peis::Api('报告时间计算',"2403020020"),"111111","报告时间计算"));
|
|
|
|
|
$data=[
|
|
|
|
|
'action'=>4,
|
|
|
|
|
'ghzid'=>'5a798c097bc64bd79c22050175e6236a',
|
|
|
|
|
'dzjid'=>'994924890348203254993',
|
|
|
|
|
'hxbz'=>"H5撤销核销",
|
|
|
|
|
'yyid'=>6
|
|
|
|
|
];
|
|
|
|
|
$aspnet::YouHuiQuan($data);
|
|
|
|
|
// $data=[
|
|
|
|
|
// 'action'=>4,
|
|
|
|
|
// 'ghzid'=>'5a798c097bc64bd79c22050175e6236a',
|
|
|
|
|
// 'dzjid'=>'994924890348203254993',
|
|
|
|
|
// 'hxbz'=>"H5撤销核销",
|
|
|
|
|
// 'yyid'=>6
|
|
|
|
|
// ];
|
|
|
|
|
// $aspnet::YouHuiQuan($data);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|