Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
starsw001
ShopXO
提交
a9fb7259
ShopXO
项目概览
starsw001
/
ShopXO
与 Fork 源项目一致
Fork自
纵之格 / ShopXO
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
ShopXO
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
a9fb7259
编写于
9月 17, 2019
作者:
D
devil_gong
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'v1.7.0' of gitee.com:gongfuxiang/shopxo into v1.7.0
上级
b3bcc0aa
fe38edcf
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
5 addition
and
5 deletion
+5
-5
application/lang/zh-cn.php
application/lang/zh-cn.php
+1
-1
application/service/AdminPowerService.php
application/service/AdminPowerService.php
+3
-3
application/service/UserService.php
application/service/UserService.php
+1
-1
未找到文件。
application/lang/zh-cn.php
浏览文件 @
a9fb7259
...
...
@@ -367,7 +367,7 @@ return array(
'common_regex_pwd'
=>
'^.{6,18}$'
,
// 手机号码
'common_regex_mobile'
=>
'^1((3|5|
8|7
){1}\d{1})\d{8}$'
,
'common_regex_mobile'
=>
'^1((3|5|
6|7|8|9
){1}\d{1})\d{8}$'
,
// 座机号码
'common_regex_tel'
=>
'^\d{3,4}-?\d{8}$'
,
...
...
application/service/AdminPowerService.php
浏览文件 @
a9fb7259
...
...
@@ -35,8 +35,8 @@ class AdminPowerService
$field
=
empty
(
$params
[
'field'
])
?
'*'
:
$params
[
'field'
];
$order_by
=
empty
(
$params
[
'order_by'
])
?
'id desc'
:
trim
(
$params
[
'order_by'
]);
// 获取
管理员
列表
$data
=
Db
::
name
(
'Power'
)
->
where
(
$where
)
->
order
(
$order_by
)
->
select
();
// 获取
权限菜单
列表
$data
=
Db
::
name
(
'Power'
)
->
field
(
$field
)
->
where
(
$where
)
->
order
(
$order_by
)
->
select
();
if
(
!
empty
(
$data
))
{
foreach
(
$data
as
&
$v
)
...
...
@@ -185,7 +185,7 @@ class AdminPowerService
$field
=
empty
(
$params
[
'field'
])
?
'*'
:
$params
[
'field'
];
$order_by
=
empty
(
$params
[
'order_by'
])
?
'id desc'
:
trim
(
$params
[
'order_by'
]);
// 获取
管理员
列表
// 获取
角色
列表
$data
=
Db
::
name
(
'Role'
)
->
where
(
$where
)
->
order
(
$order_by
)
->
select
();
if
(
!
empty
(
$data
))
{
...
...
application/service/UserService.php
浏览文件 @
a9fb7259
...
...
@@ -133,7 +133,7 @@ class UserService
$m
=
isset
(
$params
[
'm'
])
?
intval
(
$params
[
'm'
])
:
0
;
$n
=
isset
(
$params
[
'n'
])
?
intval
(
$params
[
'n'
])
:
10
;
// 获取
管理员
列表
// 获取
用户
列表
$data
=
Db
::
name
(
'User'
)
->
where
(
$where
)
->
order
(
$order_by
)
->
limit
(
$m
,
$n
)
->
select
();
if
(
!
empty
(
$data
))
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录