6
0
Fork 0

添加部分修改

release
vine_liutk 2021-12-29 11:07:15 +08:00
parent 9fceb901a4
commit 47d66a5fdd
2 changed files with 3 additions and 3 deletions

View File

@ -41,6 +41,7 @@ class App extends Form
$this->text('app_name', 'APP名称')->value($appSettings['app_name'] ?? '');
$this->divider();
$this->text('search_hot_keys', '搜索热词(英文半角逗号隔开)')->value($appSettings['search_hot_keys'] ?? '');
$this->text('invite_uri', '分享邀请地址(链接)')->value($appSettings['invite_uri'] ?? '');
$this->divider();
$this->number('order_payment_expires_at', '订单支付过期时间(秒)')->value($appSettings['order_payment_expires_at'] ?? '');
$this->number('order_auto_complete_days', '订单自动完成时间(天)')->value($appSettings['order_auto_complete_days'] ?? '');
@ -59,8 +60,5 @@ class App extends Form
$this->text('article_about_us', '关于我们文章指定(链接)')->value($appSettings['article_about_us'] ?? '');
$this->text('article_user_promotion_agreement', '服务协议文章指定(链接)')->value($appSettings['article_user_promotion_agreement'] ?? '');
$this->text('article_user_hide_agreement', '隐私协议文章指定(链接)')->value($appSettings['article_user_hide_agreement'] ?? '');
$this->divider();
$this->text('invite_uri', '分享邀请地址(链接)')->value($appSettings['invite_uri'] ?? '');
}
}

View File

@ -17,11 +17,13 @@ class AfterSaleResource extends JsonResource
return [
'id' => $this->id,
'order_sn' => $this->order->sn,
'order_total_amount' => $this->order->total_amount,
'product'=>[
'name' => $this->orderProduct->name,
'cover' => $this->orderProduct->cover,
'sell_price' => bcdiv($this->orderProduct->total_amount, $this->orderProduct->quantity * 100, 2),
'num'=> $this->num,
'is_gift' => $this->orderProduct->isGift(),
],
'state' => $this->after_sale_state,
'type' => $this->type,