取消订单问题
This commit is contained in:
parent
4c7101ab80
commit
4b1ade55b8
|
|
@ -634,8 +634,8 @@ class Order extends Backend
|
|||
$op[] = ['id' => $option->id, 'title' => $option->title];
|
||||
}
|
||||
$order = model('order')->get($ids);
|
||||
if ($order){
|
||||
$this->error('订单未找到,请重试');
|
||||
if (!$order){
|
||||
$this->error('Not Find');
|
||||
}
|
||||
return $this->fetch('delete', ['row' => $order, 'options' => $op]);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -445,18 +445,23 @@ define(['jquery', 'bootstrap', 'backend', 'addtabs', 'adminlte', 'form'], functi
|
|||
},60*1000);
|
||||
|
||||
|
||||
var s =5;//几秒刷新
|
||||
setInterval(f5,s*1000);
|
||||
//定时器刷新
|
||||
var s = 30;
|
||||
|
||||
function f5() {
|
||||
$.post("/admin/ajax/get_config?",{field:'addr2'},function(data,status){
|
||||
// alert("Data: " + data.data + "nStatus: " + status);
|
||||
// console.log(data);
|
||||
Backend.api.sidebar(JSON.parse(data));
|
||||
|
||||
$.post("/admin/ajax/get_config?", { field: 'addr2' }, function (data, status) {
|
||||
try {
|
||||
Backend.api.sidebar(JSON.parse(data));
|
||||
} catch (e) {
|
||||
console.error("解析失败", e);
|
||||
}
|
||||
}).always(function () {
|
||||
// 无论成功失败,延迟下一次
|
||||
setTimeout(f5, s * 1000);
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
f5(); // 初始化执行
|
||||
|
||||
|
||||
return Controller;
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user