diy优化,新增订单提交成功钩子
parent
55c151f0e6
commit
4d0cee219b
|
|
@ -5,8 +5,8 @@
|
|||
<link rel="shortcut icon" type="image/x-icon" href="{{$public_host}}favicon.ico" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>{{:MyLang('common_service.diy.base_nav_title')}}</title>
|
||||
<script type="module" crossorigin src="{{$public_host}}static/diy/js/entry/index-c834ac63.js"></script>
|
||||
<link rel="stylesheet" href="{{$public_host}}static/diy/css/index-011987cc.css">
|
||||
<script type="module" crossorigin src="{{$public_host}}static/diy/js/entry/index-f82d231c.js"></script>
|
||||
<link rel="stylesheet" href="{{$public_host}}static/diy/css/index-0f18f741.css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
|
|
|
|||
|
|
@ -809,7 +809,7 @@ class BuyService
|
|||
self::BuyCartDelete($params);
|
||||
|
||||
// 返回信息
|
||||
$result = [
|
||||
$data = [
|
||||
'order_status' => $order_status,
|
||||
'order_ids' => $order_ids,
|
||||
'payment_id' => $payment_id,
|
||||
|
|
@ -828,7 +828,7 @@ class BuyService
|
|||
// 提交成功,进入合并支付
|
||||
case 1 :
|
||||
$msg = MyLang('submit_success');
|
||||
$result['jump_url'] = MyUrl('index/order/pay', ['ids'=>implode(',', $order_ids)]);
|
||||
$data['jump_url'] = MyUrl('index/order/pay', ['ids'=>implode(',', $order_ids)]);
|
||||
break;
|
||||
|
||||
// 默认操作成功
|
||||
|
|
@ -836,7 +836,21 @@ class BuyService
|
|||
$msg = MyLang('operate_success');
|
||||
}
|
||||
|
||||
return DataReturn($msg, 0, $result);
|
||||
// 订单提交成功钩子
|
||||
$hook_name = 'plugins_service_buy_order_submit_success';
|
||||
$ret = EventReturnHandle(MyEventTrigger($hook_name, [
|
||||
'hook_name' => $hook_name,
|
||||
'is_backend' => true,
|
||||
'data' => &$data,
|
||||
'params' => $params,
|
||||
|
||||
]));
|
||||
if(isset($ret['code']) && $ret['code'] != 0)
|
||||
{
|
||||
throw new \Exception($ret['msg']);
|
||||
}
|
||||
|
||||
return DataReturn($msg, 0, $data);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -1 +0,0 @@
|
|||
import{d as a,c as e,u as s,a as r,o as t}from"../entry/index-c834ac63.js";const n=a({__name:"index",setup(a){const n=s(),p=r(),{params:o,query:u}=n,{path:d}=o;return p.replace({path:"/"+d,query:u}),(a,s)=>(t(),e("div"))}});export{n as default};
|
||||
|
|
@ -0,0 +1 @@
|
|||
import{d as a,c as e,u as s,a as r,o as t}from"../entry/index-f82d231c.js";const n=a({__name:"index",setup(a){const n=s(),p=r(),{params:o,query:u}=n,{path:d}=o;return p.replace({path:"/"+d,query:u}),(a,s)=>(t(),e("div"))}});export{n as default};
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue