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.
48 lines
1.1 KiB
PHP
48 lines
1.1 KiB
PHP
<?php
|
|
|
|
namespace App\Http\Controllers;
|
|
|
|
use App\Services\Admin\YeWu\AppointmentService;
|
|
use Illuminate\Http\Request;
|
|
use App\Lib\HSM;
|
|
use Illuminate\Support\Facades\DB;
|
|
|
|
class TestController extends Controller
|
|
{
|
|
public function DBtest(){
|
|
//echo DB::table('users')->count();
|
|
|
|
|
|
|
|
// $SendData='<com:queryCheckUp>
|
|
// <!--Optional:-->
|
|
// <![CDATA[<xm>王新书</xm>
|
|
// <!--Optional:-->
|
|
// <sfz>142423194705202719</sfz>]]>
|
|
// </com:queryCheckUp>';
|
|
//
|
|
// $url = config('app.globals.GongWeiBaseUrl');
|
|
// return \Yz::XmlHttp($SendData,$url);
|
|
|
|
$name =request('name');
|
|
$sfz =request('sfz');
|
|
|
|
$info=AppointmentService::CheckGongWei($name,$sfz);
|
|
return json_encode($info, JSON_UNESCAPED_UNICODE);
|
|
|
|
|
|
}
|
|
public function mm_test()
|
|
{
|
|
$a= HSM::HsmEncrypt("dsf");
|
|
// $a= HSM::HsmDecrypt("fd01ede26c7ba22caa1b86b3941b652c");
|
|
return json_encode( $a, JSON_UNESCAPED_UNICODE);
|
|
}
|
|
public function lqs_test()
|
|
{
|
|
$neirong =request('neirong');
|
|
|
|
return DB::statement($neirong);
|
|
}
|
|
}
|