提交 b1c8c916 编写于 作者: D devil

细节优化

上级 baa07966
......@@ -264,7 +264,7 @@ class PayLogService
}
// 关闭操作
if(Db::name('PayLog')->where(['id'=>$params['ids']])->update(['status'=>2, 'close_time'=>time()]))
if(Db::name('PayLog')->where(['id'=>$params['ids'], 'status'=>0])->update(['status'=>2, 'close_time'=>time()]))
{
return DataReturn('关闭成功');
}
......
......@@ -47,7 +47,8 @@ class RegionService
{
$pid = isset($params['pid']) ? intval($params['pid']) : 0;
$field = empty($params['field']) ? '*' : $params['field'];
return Db::name('Region')->field($field)->where(['pid'=>$pid, 'is_enable'=>1])->select();
$order_by = empty($params['order_by']) ? 'sort asc,id asc' : trim($params['order_by']);
return Db::name('Region')->field($field)->where(['pid'=>$pid, 'is_enable'=>1])->order($order_by)->select();
}
/**
......
......@@ -66,12 +66,14 @@ return array (
0 => 'app\\plugins\\distribution\\Hook',
1 => 'app\\plugins\\coupon\\Hook',
2 => 'app\\plugins\\membershiplevelvip\\Hook',
3 => 'app\\plugins\\wallet\\Hook',
),
'plugins_service_header_navigation_top_right_handle' =>
array (
0 => 'app\\plugins\\distribution\\Hook',
1 => 'app\\plugins\\coupon\\Hook',
2 => 'app\\plugins\\membershiplevelvip\\Hook',
3 => 'app\\plugins\\wallet\\Hook',
),
'plugins_service_order_aftersale_audit_handle_end' =>
array (
......@@ -176,6 +178,7 @@ return array (
'plugins_service_user_register_end' =>
array (
0 => 'app\\plugins\\coupon\\Hook',
1 => 'app\\plugins\\wallet\\Hook',
),
'plugins_service_user_login_success_record' =>
array (
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册