12345678910111213141516171819202122232425262728293031323334353637 |
- <?php
- namespace crmeb\services;
- class TailongpayService
- {
- protected static $RequestUrl = 'http://47.100.209.133:8080/preSfpPOST';
- public static function makeGrpQrcode($order_id, $pay_price, $attach, $body)
- {
- $data = [
- 'reqData' => [
- 'body' => [
- 'mechNo' => '8202302069000445',
- 'mechNm' => '台州市椒江宏根蒂酒业有限公司',
- 'channelCode' => 'CNHGDJY020401',
- 'inetNo' => $order_id,
- 'sndTmstmp' => date('YmdHis'),
- 'acctType' => '02',
- 'ccy' => '156',
- 'pdDsc' => $body,
- 'pymntAmt' => bcmul($pay_price, 100),
- 'addMsg' => $attach
- ],
- 'head' => [
- 'serviceId' => 'makeGrpQrcode',
- 'txSno' => 'd723b7bc39584788ba91548ce0d7db17'
- ]
- ]
- ];
- // $data = json_encode_tl($data);
- $res = do_request(self::$RequestUrl, $data, null, true, true, 256);
- var_dump($res);
- }
- }
|