Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zhichan
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
蒋勇
zhichan
Commits
417f5379
Commit
417f5379
authored
Jul 06, 2020
by
孙亚楠
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d
parent
af1ff0bc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
esign-admin/app/base/controller/impl/merchant/merchantuserCtl.js
+6
-0
esign-admin/app/base/system.js
+2
-2
No files found.
esign-admin/app/base/controller/impl/merchant/merchantuserCtl.js
View file @
417f5379
...
@@ -7,6 +7,7 @@ class MerchantUserCtl extends CtlBase {
...
@@ -7,6 +7,7 @@ class MerchantUserCtl extends CtlBase {
constructor
()
{
constructor
()
{
super
();
super
();
this
.
userSve
=
system
.
getObject
(
"service.uc.userSve"
);
this
.
userSve
=
system
.
getObject
(
"service.uc.userSve"
);
this
.
merchantSve
=
system
.
getObject
(
"service.merchant.merchantSve"
);
}
}
async
save
(
params
,
pobj2
,
req
)
{
async
save
(
params
,
pobj2
,
req
)
{
...
@@ -29,6 +30,11 @@ class MerchantUserCtl extends CtlBase {
...
@@ -29,6 +30,11 @@ class MerchantUserCtl extends CtlBase {
if
(
!
params
.
mobile
)
{
if
(
!
params
.
mobile
)
{
return
system
.
getResult
(
null
,
"请选择商户"
);
return
system
.
getResult
(
null
,
"请选择商户"
);
}
}
let
merchantBean
=
await
this
.
merchantSve
.
merchantOfInfo
({
id
:
this
.
trim
(
params
.
uctype_id
)});
if
(
merchantBean
.
status
!=
0
||
!
merchantBean
.
data
||
merchantBean
.
data
.
audit_status
!=
"1"
){
return
system
.
getResult
(
null
,
`商户【
${
params
.
uctype_id
}
】不存在`
);
}
validation
.
check
(
params
,
"real_name"
,
{
name
:
"姓名"
,
is_require
:
true
});
validation
.
check
(
params
,
"real_name"
,
{
name
:
"姓名"
,
is_require
:
true
});
validation
.
check
(
params
,
"mobile"
,
{
name
:
"联系电话"
,
is_require
:
true
});
validation
.
check
(
params
,
"mobile"
,
{
name
:
"联系电话"
,
is_require
:
true
});
validation
.
check
(
params
,
"ucname"
,
{
name
:
"用户名"
,
is_require
:
true
});
validation
.
check
(
params
,
"ucname"
,
{
name
:
"用户名"
,
is_require
:
true
});
...
...
esign-admin/app/base/system.js
View file @
417f5379
...
@@ -199,9 +199,9 @@ class System {
...
@@ -199,9 +199,9 @@ class System {
// 用户服务
// 用户服务
sve_uc
:
dev
+
":3651"
+
path
,
sve_uc
:
dev
+
":3651"
+
path
,
// 商户服务
// 商户服务
sve_merchant
:
dev
+
":3652"
+
path
,
sve_merchant
:
local
+
":3652"
+
path
,
// 订单服务
// 订单服务
sve_order
:
dev
+
":3653"
+
path
,
sve_order
:
local
+
":3653"
+
path
,
}
}
}
else
{
}
else
{
return
{
return
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment