Skip to content

Commit

Permalink
update:小优化
Browse files Browse the repository at this point in the history
  • Loading branch information
assimon committed Mar 12, 2022
1 parent 773bffa commit a2e4c38
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 4 deletions.
4 changes: 4 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,7 @@ DUJIAO_ADMIN_LANGUAGE=zh_CN

# 后台登录地址
ADMIN_ROUTE_PREFIX={admin_path}

# 是否开启https (前端开启了后端也必须为true)
# 后台登录出现0err或者其他登录异常问题,大概率是开启了https而后台没有开启,把下面的false改为true即可
ADMIN_HTTPS=false
2 changes: 1 addition & 1 deletion app/Http/Controllers/Pay/AlipayController.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public function gateway(string $payway, string $orderSN)
case 'alipayscan':
try{
$result = Pay::alipay($config)->scan($order)->toArray();
$result['payname'] = $this->payGateway->pay_name;
$result['payname'] = $this->order->order_sn;
$result['actual_price'] = (float)$this->order->actual_price;
$result['orderid'] = $this->order->order_sn;
$result['jump_payuri'] = $result['qr_code'];
Expand Down
2 changes: 1 addition & 1 deletion app/Http/Controllers/Pay/PayjsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public function gateway(string $payway, string $orderSN)
$this->loadGateWay($orderSN, $payway);
// 构造订单基础信息
$data = [
'body' => $this->order->title, // 订单标题
'body' => $this->order->order_sn, // 订单标题
'total_fee' => bcmul($this->order->actual_price, 100, 0), // 订单金额
'out_trade_no' => $this->order->order_sn, // 订单号
'notify_url' => url($this->payGateway->pay_handleroute . '/notify_url'),
Expand Down
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@
"config": {
"optimize-autoloader": true,
"preferred-install": "dist",
"sort-packages": true
"sort-packages": true,
"platform-check": false
},
"extra": {
"laravel": {
Expand Down
2 changes: 1 addition & 1 deletion config/dujiaoka.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*/

return [
'dujiaoka_version' => '2.0.2',
'dujiaoka_version' => '2.0.3',
// 模板集合
'templates' => [
'unicorn' => '官方[unicorn-独角兽]',
Expand Down

0 comments on commit a2e4c38

Please sign in to comment.