|
|
|
|
@ -124,10 +124,10 @@ class XCXApiController extends Controller
|
|
|
|
|
$method = 'POST';
|
|
|
|
|
|
|
|
|
|
// $method = 'POST';
|
|
|
|
|
// $url = '/jeecg-boot/hospital/openapi/archive/list';
|
|
|
|
|
// $timestamp = "1726880312";
|
|
|
|
|
// $nonce = '88e5928d0c34aa0e9cb0bade72f83a67';
|
|
|
|
|
// $body = 'wxid=oosgJj-SVIxTrm_g1p213tsSHK5g';
|
|
|
|
|
// $url = '/jeecg-boot/hospital/openapi/order/create';
|
|
|
|
|
// $timestamp = "1727226133";
|
|
|
|
|
// $nonce = 'V50f38fJzFuCAxWG';
|
|
|
|
|
// $body = 'amount=1&appid=13a159e438a742dd932c9bddbfaa41e5&ghzid=c5ce8410ba854d879a0abf689923ca0d&order_desc=单位团检&orderid=20240915183440999WMp2yu&sub_org_code=6';
|
|
|
|
|
|
|
|
|
|
$private_key = Storage::get('keys/private_key.pem');
|
|
|
|
|
$SignStr = $method . "\n" .
|
|
|
|
|
@ -143,9 +143,11 @@ class XCXApiController extends Controller
|
|
|
|
|
|
|
|
|
|
// 对签名结果进行 Base64 编码
|
|
|
|
|
$base64Signature = base64_encode($signature);
|
|
|
|
|
// dd($base64Signature);
|
|
|
|
|
if ($is_urlencode) {
|
|
|
|
|
$base64Signature = urlencode($base64Signature);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// dd($SignStr,$base64Signature);
|
|
|
|
|
return $base64Signature;
|
|
|
|
|
}
|
|
|
|
|
|