|
|
@@ -142,7 +142,7 @@ class WeChatPayService extends BasePayService
|
|
|
$response = $this->app->getClient()->postJson("v3/pay/transactions/jsapi", [
|
|
|
"appid" => $appId,
|
|
|
"mchid" => $this->config['mch_id'],
|
|
|
- "description" => $order['desc'],
|
|
|
+ "description" => $order['desc']??$this->payDesc($from),
|
|
|
"out_trade_no" => $order['pay_sn'],
|
|
|
"notify_url" => $this->config['notify_url'],
|
|
|
"amount" => [
|
|
|
@@ -177,7 +177,7 @@ class WeChatPayService extends BasePayService
|
|
|
$response = $this->app->getClient()->postJson('v3/pay/transactions/native', [
|
|
|
'appid' => $appId,
|
|
|
'mchid' => $this->config['mch_id'],
|
|
|
- 'description' =>$order['desc']??'服务',
|
|
|
+ 'description' =>$order['desc']??$this->payDesc($from),
|
|
|
'out_trade_no' => $order['pay_sn'],
|
|
|
'notify_url' => $this->config['notify_url'],
|
|
|
'amount' => [
|
|
|
@@ -207,7 +207,7 @@ class WeChatPayService extends BasePayService
|
|
|
$response = $this->app->getClient()->postJson('v3/pay/transactions/app', [
|
|
|
'appid' => $appId,
|
|
|
'mchid' => $this->config['mch_id'],
|
|
|
- 'description' => $this->payDesc($from),
|
|
|
+ 'description' => $order['desc']??$this->payDesc($from),
|
|
|
'out_trade_no' => $order['pay_sn'],
|
|
|
'notify_url' => $this->config['notify_url'],
|
|
|
'amount' => [
|
|
|
@@ -239,11 +239,11 @@ class WeChatPayService extends BasePayService
|
|
|
if (!empty(env('project.test_web_ip')) && env('APP_DEBUG')) {
|
|
|
$ip = env('project.test_web_ip');
|
|
|
}
|
|
|
-
|
|
|
+//
|
|
|
$response = $this->app->getClient()->postJson('v3/pay/transactions/h5', [
|
|
|
'appid' => $appId,
|
|
|
'mchid' => $this->config['mch_id'],
|
|
|
- 'description' => $this->payDesc($from),
|
|
|
+ 'description' => $order['desc']??$this->payDesc($from),
|
|
|
'out_trade_no' => $order['pay_sn'],
|
|
|
'notify_url' => $this->config['notify_url'],
|
|
|
'amount' => [
|