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
b29eb1d9
Commit
b29eb1d9
authored
Sep 24, 2020
by
庄冰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cancelredis
parent
d597c89b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
5 deletions
+9
-5
gsb-marketplat/app/base/api/api.base.js
+5
-5
gsb-marketplat/app/base/service/impl/media/needinfoSve.js
+4
-0
No files found.
gsb-marketplat/app/base/api/api.base.js
View file @
b29eb1d9
...
@@ -49,11 +49,11 @@ class APIBase {
...
@@ -49,11 +49,11 @@ class APIBase {
return
system
.
getResultFail
(...
xarg
);
return
system
.
getResultFail
(...
xarg
);
}
}
if
(
pobj
&&
pobj
.
actionType
&&
this
.
queryAction
.
indexOf
(
pobj
.
actionType
)
>=
0
){
if
(
pobj
&&
pobj
.
actionType
&&
this
.
queryAction
.
indexOf
(
pobj
.
actionType
)
>=
0
){
//查询缓存
//
//
查询缓存
var
cacheRes
=
await
this
.
redisClient
.
get
(
shaStr
);
//
var cacheRes = await this.redisClient.get(shaStr);
if
(
cacheRes
)
{
//
if (cacheRes) {
return
JSON
.
parse
(
cacheRes
);
//
return JSON.parse(cacheRes);
}
//
}
}
}
var
rtn
=
await
this
[
methodname
](
pobj
,
query
,
req
);
var
rtn
=
await
this
[
methodname
](
pobj
,
query
,
req
);
this
.
logClient
.
log
(
pobj
,
req
,
rtn
);
this
.
logClient
.
log
(
pobj
,
req
,
rtn
);
...
...
gsb-marketplat/app/base/service/impl/media/needinfoSve.js
View file @
b29eb1d9
...
@@ -46,6 +46,10 @@ class NeedinfoService extends ServiceBase {
...
@@ -46,6 +46,10 @@ class NeedinfoService extends ServiceBase {
if
(
!
ab
.
contact_mobile
){
if
(
!
ab
.
contact_mobile
){
return
system
.
getResultFail
(
-
107
,
"联系电话不能为空!"
)
return
system
.
getResultFail
(
-
107
,
"联系电话不能为空!"
)
}
}
var
reg
=
/^
(((
13
[
0-9
]{1})
|
(
15
[
0-9
]{1})
|
(
18
[
0-9
]{1})
|
(
14
[
0-9
]{1})
|
)
+
\d{8})
$/
;
if
(
ab
.
contact_mobile
.
length
!=
11
||
!
reg
.
test
(
ab
.
contact_mobile
)){
return
system
.
getResultFail
(
-
108
,
"联系电话格式错误!"
)
}
var
channel
=
await
this
.
launchchannelDao
.
model
.
findOne
({
var
channel
=
await
this
.
launchchannelDao
.
model
.
findOne
({
attributes
:[
"code"
,
"name"
,
"only_code"
],
attributes
:[
"code"
,
"name"
,
"only_code"
],
where
:{
code
:
ab
.
channel_code
},
raw
:
true
where
:{
code
:
ab
.
channel_code
},
raw
:
true
...
...
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