切换导航条
此项目
正在载入...
登录
root
/
lexin
·
提交
转到一个项目
GitLab
转到仪表盘
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
邮件补丁
差异文件
浏览文件
作者
lizheng
6 years ago
提交
b958b7c8b95318c4ddfc946efa217ec8c592fa8b
1 个父辈
4279aae0
1 个管道 的构建
通过
耗费 2 秒
测试提交
变更
2
构建
1
显示空白字符变更
内嵌
并排对比
正在显示
2 个修改的文件
包含
7 行增加
和
7 行删除
api/wxapp/controller/ProductController.php
api/wxapp/controller/UserController.php
api/wxapp/controller/ProductController.php
查看文件 @
b958b7c
...
...
@@ -234,7 +234,7 @@ class ProductController extends RestBaseController
'fee_explain'
=>
$data
[
'fee_explain'
],
'refund_explain'
=>
$data
[
'refund_explain'
],
'user_id'
=>
$this
->
userId
,
'remark'
=>
$data
[
'remark'
]
?
:
''
'remark'
=>
isset
(
$data
[
'remark'
])
?
$data
[
'remark'
]
:
''
];
$result
=
Db
::
name
(
'product'
)
->
insert
(
$arr
);
if
(
$result
===
false
)
{
...
...
@@ -550,7 +550,7 @@ class ProductController extends RestBaseController
$validate
=
new
Validate
([
'mobile'
=>
'require'
,
'age'
=>
'require'
,
'job'
=>
'require|in:1,2,3'
,
'job'
=>
'require|in:
0,
1,2,3'
,
'house'
=>
'require|in:0,1,2'
,
'policy'
=>
'require|in:0,1,2'
,
'car'
=>
'require|in:0,1,2,3'
,
...
...
@@ -560,7 +560,7 @@ class ProductController extends RestBaseController
'mobile.require'
=>
'缺少参数mobile!'
,
'age.require'
=>
'缺少参数age!'
,
'job.require'
=>
'缺少参数job!'
,
'job.in'
=>
'参数job范围
1
-3!'
,
'job.in'
=>
'参数job范围
0
-3!'
,
'house.require'
=>
'缺少参数house!'
,
'house.in'
=>
'参数house范围0-2!'
,
'policy.require'
=>
'缺少参数policy!'
,
...
...
@@ -656,7 +656,7 @@ class ProductController extends RestBaseController
$validate
=
new
Validate
([
'mobile'
=>
'require'
,
'age'
=>
'require'
,
'job'
=>
'require|in:1,2,3'
,
'job'
=>
'require|in:
0,
1,2,3'
,
'house'
=>
'require|in:0,1,2'
,
'policy'
=>
'require|in:0,1,2'
,
'car'
=>
'require|in:0,1,2,3'
,
...
...
@@ -666,7 +666,7 @@ class ProductController extends RestBaseController
'mobile.require'
=>
'缺少参数mobile!'
,
'age.require'
=>
'缺少参数age!'
,
'job.require'
=>
'缺少参数job!'
,
'job.in'
=>
'参数job范围
1
-3!'
,
'job.in'
=>
'参数job范围
0
-3!'
,
'house.require'
=>
'缺少参数house!'
,
'house.in'
=>
'参数house范围0-2!'
,
'policy.require'
=>
'缺少参数policy!'
,
...
...
api/wxapp/controller/UserController.php
查看文件 @
b958b7c
...
...
@@ -66,7 +66,7 @@ class UserController extends RestBaseController
$validate
=
new
Validate
([
'mobile'
=>
'require'
,
'age'
=>
'require'
,
'job'
=>
'require|in:1,2'
,
'job'
=>
'require|in:
0,
1,2'
,
'house'
=>
'require|in:0,1,2'
,
'policy'
=>
'require|in:0,1'
,
'car'
=>
'require|in:0,1,3'
,
...
...
@@ -76,7 +76,7 @@ class UserController extends RestBaseController
'mobile.require'
=>
'缺少参数mobile!'
,
'age.require'
=>
'缺少参数age!'
,
'job.require'
=>
'缺少参数job!'
,
'job.in'
=>
'参数job范围
1
-2!'
,
'job.in'
=>
'参数job范围
0
-2!'
,
'house.require'
=>
'缺少参数house!'
,
'house.in'
=>
'参数house范围0-2!'
,
'policy.require'
=>
'缺少参数policy!'
,
...
...
请
注册
或
登录
后发表评论