Commit f0bb5e86 by 朱继来

调整售后弹窗

parent c44ea657
...@@ -1517,6 +1517,25 @@ Class OrderController extends Controller ...@@ -1517,6 +1517,25 @@ Class OrderController extends Controller
return view('changeInvoice', $info); return view('changeInvoice', $info);
} }
// 订单售后检测是否能原路返回
public function orderServiceCheck(Request $request)
{
if($request->isMethod('post')){
$data['data'] = $request->input();
$data['k1'] = time();
$data['k2'] = md5(md5($data['k1']).'fh6y5t4rr351d2c3bryi');
$data['operator_id'] = $request->user->userId;
$data['operator_name'] = $request->user->name;
$update_url = Config('website.api_domain').'service/checkTurnBack';
$res = json_decode(curlApi($update_url, $data, 'POST'), true);
return array('errcode'=>$res['err_code'], 'errmsg'=>'', 'data'=>$res['data']);
}
}
// 订单售后 // 订单售后
public function orderServiceApply(Request $request) public function orderServiceApply(Request $request)
{ {
......
...@@ -86,6 +86,7 @@ Route::group(['middleware' => 'web'], function () { ...@@ -86,6 +86,7 @@ Route::group(['middleware' => 'web'], function () {
// Route::post('/ajaxInputCancelReason', 'OrderController@ajaxInputCancelReason'); // Route::post('/ajaxInputCancelReason', 'OrderController@ajaxInputCancelReason');
Route::post('/ajax/shipping', 'OrderController@shipping'); Route::post('/ajax/shipping', 'OrderController@shipping');
Route::post('/ajax/orderServiceCheck', 'OrderController@orderServiceCheck');
Route::post('/ajax/orderServiceApply', 'OrderController@orderServiceApply'); Route::post('/ajax/orderServiceApply', 'OrderController@orderServiceApply');
Route::get('/add_order', 'AddOrderController@addOrder'); Route::get('/add_order', 'AddOrderController@addOrder');
......
...@@ -8,6 +8,19 @@ return [ ...@@ -8,6 +8,19 @@ return [
3 => '审核通过', 3 => '审核通过',
], ],
// 售后类型
'service_type' => [
1 => '未出库取消',
2 => '已出库退货',
],
// 退款方式
'refund_type' => [
1 => '原路返回',
2 => '支付宝',
3 => '银行',
],
// 退款状态 // 退款状态
'refund_status' => [ 'refund_status' => [
1 => '待生成', 1 => '待生成',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment