|
|
@@ -172,10 +172,11 @@ class WeChatPayService extends BasePayService
|
|
|
*/
|
|
|
public function nativePay($from, $order, $appId)
|
|
|
{
|
|
|
+ // $this->payDesc($from)
|
|
|
$response = $this->app->getClient()->postJson('v3/pay/transactions/native', [
|
|
|
'appid' => $appId,
|
|
|
'mchid' => $this->config['mch_id'],
|
|
|
- 'description' => $this->payDesc($from),
|
|
|
+ 'description' =>$order['desc']??'服务',
|
|
|
'out_trade_no' => $order['pay_sn'],
|
|
|
'notify_url' => $this->config['notify_url'],
|
|
|
'amount' => [
|
|
|
@@ -318,10 +319,10 @@ class WeChatPayService extends BasePayService
|
|
|
public function payDesc($from)
|
|
|
{
|
|
|
$desc = [
|
|
|
- 'order' => '商品',
|
|
|
+ 'order' => '服务',
|
|
|
'recharge' => '充值',
|
|
|
];
|
|
|
- return $desc[$from] ?? '商品';
|
|
|
+ return $desc[$from] ?? '服务';
|
|
|
}
|
|
|
|
|
|
|