You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
72 lines
2.0 KiB
PHP
72 lines
2.0 KiB
PHP
<?php
|
|
|
|
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;
|
|
|
|
class TestController extends Controller
|
|
{
|
|
public function DBtest(){
|
|
// echo DB::table('users')->count();
|
|
// $order= new OrderService();
|
|
// dd($order->DepartmentItemCount(173));
|
|
//退款------------------
|
|
$data = [
|
|
'orderid' => '20241108112106776eslNJ2',
|
|
'refund_order_id' => 'T' . '20241108112106776eslNJ2',
|
|
'refund_amount' => 74900,
|
|
'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();
|
|
//优惠券-----------------
|
|
// $data=[
|
|
// 'action'=>4,
|
|
// 'ghzid'=>'3da338777513487fa65f918dad7719d8',
|
|
// 'dzjid'=>'995315997321979250097',
|
|
// 'hxbz'=>"H5撤销核销",
|
|
// 'yyid'=>6
|
|
// ];
|
|
// $aspnet::YouHuiQuan($data);
|
|
|
|
|
|
// $temp_list=[];
|
|
// $nmr=$aspnet::GetNmrList(['yyid'=>6,'data'=>['2024-10-25']],uniqid());
|
|
//
|
|
// //获取每日数量
|
|
// foreach($nmr as $k=>$v){
|
|
// $temp_list[]=[
|
|
// 'date'=>$k,
|
|
// 'count'=>count($v)
|
|
// ];
|
|
// }
|
|
|
|
// $peis = new PEISApiController();
|
|
// dd($peis::Get($peis::Api('报告时间计算',"2403020020"),"111111","报告时间计算"));
|
|
// $data=[
|
|
// 'action'=>4,
|
|
// 'ghzid'=>'5a798c097bc64bd79c22050175e6236a',
|
|
// 'dzjid'=>'994924890348203254993',
|
|
// 'hxbz'=>"H5撤销核销",
|
|
// 'yyid'=>6
|
|
// ];
|
|
// $aspnet::YouHuiQuan($data);
|
|
|
|
}
|
|
|
|
public function ApiTest(){
|
|
return \Yz::Return(true, '获取成功');
|
|
}
|
|
}
|