|
@@ -577,7 +577,7 @@ class Pay extends Api
|
|
|
// $sign_bytes = strtolower($this->base16_encode(md5($data)));
|
|
|
// $sign_bytes = strtoupper($this->base16_encode($sign_bytes));
|
|
|
|
|
|
- $sign_bytes = '/3.0/hop/svc/pay/toPay.ajax' . $this->base16_encode(md5($data));
|
|
|
+ $sign_bytes = $this->base16_encode(md5($data));
|
|
|
$hdc_token = hash_hmac('sha256', $sign_bytes, config('pay_appkey'), false);
|
|
|
// $hdc_token = strtolower($this->base16_encode($hdc_token));
|
|
|
|
|
@@ -594,6 +594,7 @@ class Pay extends Api
|
|
|
$return_data['host'] = config('pay_ip');
|
|
|
$return_data['appid'] = config('pay_appid');
|
|
|
$return_data['token'] = $hdc_token;
|
|
|
+ $return_data['apptoken'] = config('pay_appkey');
|
|
|
|
|
|
/*$rs = httpRequest($url, 'POST', $data, $header);
|
|
|
if (!$rs) {
|