细节优化
parent
49035187ef
commit
e166f3633b
|
|
@ -1019,6 +1019,9 @@ class BuyService
|
||||||
// 删除购物车
|
// 删除购物车
|
||||||
self::BuyCartDelete($params);
|
self::BuyCartDelete($params);
|
||||||
|
|
||||||
|
// 获取数据库订单信息
|
||||||
|
$order = Db::name('Order')->find($order_id);
|
||||||
|
|
||||||
// 订单添加成功钩子, 不校验返回值
|
// 订单添加成功钩子, 不校验返回值
|
||||||
$hook_name = 'plugins_service_buy_order_insert_success';
|
$hook_name = 'plugins_service_buy_order_insert_success';
|
||||||
Hook::listen($hook_name, [
|
Hook::listen($hook_name, [
|
||||||
|
|
@ -1031,9 +1034,6 @@ class BuyService
|
||||||
'params' => $params,
|
'params' => $params,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
// 获取数据库订单信息
|
|
||||||
$order = Db::name('Order')->find($order_id);
|
|
||||||
|
|
||||||
// 返回信息
|
// 返回信息
|
||||||
$result = [
|
$result = [
|
||||||
'order' => $order,
|
'order' => $order,
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,9 @@
|
||||||
{
|
{
|
||||||
"enablePullDownRefresh": true,
|
"enablePullDownRefresh": true,
|
||||||
|
"navigationBarBackgroundColor": "#d2364c",
|
||||||
|
"backgroundColorTop": "#d2364c",
|
||||||
|
"backgroundColorBottom": "#f5f5f5",
|
||||||
|
"backgroundTextStyle": "light",
|
||||||
"usingComponents": {
|
"usingComponents": {
|
||||||
"component-icon-nav": "/components/icon-nav/icon-nav",
|
"component-icon-nav": "/components/icon-nav/icon-nav",
|
||||||
"component-banner": "/components/slider/slider"
|
"component-banner": "/components/slider/slider"
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,9 @@
|
||||||
{
|
{
|
||||||
"enablePullDownRefresh": true,
|
"enablePullDownRefresh": true,
|
||||||
|
"navigationBarBackgroundColor": "#d2364c",
|
||||||
|
"backgroundColorTop": "#d2364c",
|
||||||
|
"backgroundColorBottom": "#f5f5f5",
|
||||||
|
"backgroundTextStyle": "light",
|
||||||
"usingComponents": {
|
"usingComponents": {
|
||||||
"component-badge": "/components/badge/badge"
|
"component-badge": "/components/badge/badge"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue