产品订单测试
This commit is contained in:
@@ -22,4 +22,32 @@ if ($_GET['test']?? '' === 'liqi') {
|
||||
$result = opcache_reset();
|
||||
echo $result ? 'OPcache 已重置' : 'OPcache 重置失败';die;
|
||||
}
|
||||
|
||||
$client = new \GuzzleHttp\Client();
|
||||
$response = $client->post( 'https://api.xiaokang88.com/open-api/client-confirm', [
|
||||
'json' => [
|
||||
'order_id' => 332,
|
||||
]
|
||||
]);
|
||||
$body = json_decode($response->getBody()->getContents(), true);
|
||||
if ($body['code'] != 0) {
|
||||
exit($body['message']);
|
||||
}
|
||||
dd($body)
|
||||
//$params = [
|
||||
// 'name' => '李四',
|
||||
// 'id_card' => '140311199811053052',
|
||||
//];
|
||||
//$key = '3a8f9b2d7c1e4f8a9b2d7c1e4f8a9b2d7c1e4f8a9b2d7c1e4f8a9b2d7c1e4f8a';
|
||||
//if (empty($key)) {
|
||||
// return '请配置ase.encrypt_key';
|
||||
//}
|
||||
//
|
||||
//$encrypt = (new \common\services\DataEncryptor($key))->encrypt($params['id_card']);
|
||||
//echo "加密\r\n";
|
||||
//var_dump($encrypt);
|
||||
//$decrypt = (new \common\services\DataEncryptor($key))->decrypt($encrypt);
|
||||
//echo "解密\r\n";
|
||||
//var_dump($decrypt);
|
||||
//return '';
|
||||
(new \common\core\WebApplication($config))->run();
|
||||
|
||||
Reference in New Issue
Block a user