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
9a2a01d1
Commit
9a2a01d1
authored
Jan 05, 2022
by
蒋勇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d
parent
d7e49357
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
13 deletions
+0
-13
zhiquanquan/app/base/db/cache/vcodeCache.js
+0
-13
No files found.
zhiquanquan/app/base/db/cache/vcodeCache.js
View file @
9a2a01d1
...
@@ -17,7 +17,6 @@ class VCodeCache extends CacheBase {
...
@@ -17,7 +17,6 @@ class VCodeCache extends CacheBase {
return
"g_vcode:appkey_"
return
"g_vcode:appkey_"
}
}
async
buildCacheVal
(
cachekey
,
inputkey
,
val
,
ex
,
...
items
)
{
async
buildCacheVal
(
cachekey
,
inputkey
,
val
,
ex
,
...
items
)
{
<<<<<<<
HEAD
:
bigdata
/
app
/
base
/
db
/
cache
/
vcodeCache
.
js
//【XXX】您的验证码是:602639(5分钟内有效),工作人员不会索取,请勿泄露。-------描述在模板中配置
//【XXX】您的验证码是:602639(5分钟内有效),工作人员不会索取,请勿泄露。-------描述在模板中配置
var
pobj
=
val
;
var
pobj
=
val
;
var
vcode
=
await
this
.
smsUtil
.
getUidStr
(
6
,
10
);
var
vcode
=
await
this
.
smsUtil
.
getUidStr
(
6
,
10
);
...
@@ -36,18 +35,6 @@ class VCodeCache extends CacheBase {
...
@@ -36,18 +35,6 @@ class VCodeCache extends CacheBase {
default
:
default
:
break
;
break
;
}
}
=======
//inputkey采用appkey_mobile的形式
var
mobile
=
inputkey
;
var
tmplCode
=
val
;
var
signName
=
items
?
items
[
0
]
:
""
;
var
vcode
=
await
this
.
smsUtil
.
getUidStr
(
6
,
10
);
if
(
!
tmplCode
&&
!
signName
)
{
this
.
smsUtil
.
sendMsg
(
mobile
,
vcode
);
}
//tmplCode为发送短信编码,需在阿里开通,signName为短信头描述信息,二者没有传递则用默认的发送验证码
else
{
this
.
smsUtil
.
aliSendMsg
(
mobile
,
tmplCode
,
signName
,
JSON
.
stringify
({
code
:
vcode
}));
>>>>>>>
697713
fd404794198607ced060f698ad9b3456e6
:
zhiquanquan
/
app
/
base
/
db
/
cache
/
vcodeCache
.
js
}
}
return
JSON
.
stringify
({
vcode
:
vcode
});
return
JSON
.
stringify
({
vcode
:
vcode
});
}
}
...
...
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