Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cof_vip
Project
Project
Details
Activity
Releases
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
houdong
cof_vip
Commits
dbfc3153
Commit
dbfc3153
authored
Jan 18, 2024
by
蒋政义
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
短信修
parent
fad747c3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
7 deletions
+16
-7
config.php
app/Conf/config.php
+13
-6
SmsModel.class.php
app/Lib/Model/SmsModel.class.php
+3
-1
No files found.
app/Conf/config.php
View file @
dbfc3153
...
...
@@ -214,17 +214,24 @@ return array(
),
'WWW_SMS_TPL'
=>
array
(
21
=>
array
(
'type'
=>
''
,
'content'
=>
'
本次验证码:\\1,请输入验证码完成账户注册
'
),
21
=>
array
(
'type'
=>
''
,
'content'
=>
'
【叩富网】验证码\\1,您正在登录叩富简投,请输入验证码
'
),
22
=>
array
(
'type'
=>
''
,
'content'
=>
'您正在绑定手机,本次验证码:\\1,请输入验证码完成手机绑定。'
),
23
=>
array
(
'type'
=>
''
,
'content'
=>
'您正在修改登录密码,输入验证码\\1,完成修改。'
),
24
=>
array
(
'type'
=>
''
,
'content'
=>
'
叩富简投-短信验证登录,验证码为:\\1 提示:请勿泄露
验证码'
),
22
=>
array
(
'type'
=>
''
,
'content'
=>
'
【叩富网】
您正在绑定手机,本次验证码:\\1,请输入验证码完成手机绑定。'
),
23
=>
array
(
'type'
=>
''
,
'content'
=>
'
【叩富网】
您正在修改登录密码,输入验证码\\1,完成修改。'
),
24
=>
array
(
'type'
=>
''
,
'content'
=>
'
【叩富网】验证码\\1,您正在登录叩富简投,请输入
验证码'
),
30
=>
array
(
'type'
=>
''
,
'content'
=>
'验证码\\1,您正在报名叩富『全民炼股』争霸赛(2020赛季),请输入验证码完成报名。'
),
31
=>
array
(
'type'
=>
''
,
'content'
=>
'有人向您发起了PK挑战,胜者可获得66元挑战金,请登录叩富炒股查看挑战详情,挑战时间为下个自然周'
),
// 32=>array('type'=>'','content'=>'验证码\\1,您正在报名叩富『全民炼股』争霸赛(2021赛季),请输入验证码完成报名。'),
32
=>
array
(
'type'
=>
''
,
'content'
=>
'验证码\\1,您正在报名叩富官方有奖赛,请输入验证码完成报名。'
)
32
=>
array
(
'type'
=>
''
,
'content'
=>
'
【叩富网】
验证码\\1,您正在报名叩富官方有奖赛,请输入验证码完成报名。'
)
)
),
'wyTplId'
=>
[
21
=>
22524361
,
22
=>
22524353
,
23
=>
22524357
,
24
=>
22524361
,
32
=>
22524529
,
]
);
...
...
app/Lib/Model/SmsModel.class.php
View file @
dbfc3153
...
...
@@ -53,6 +53,7 @@ class SmsModel extends Model{
file_put_contents
(
$logFile
,
date
(
'Y-m-d H:i:s'
)
.
' '
.
$mobile
.
' allowMaxIp'
.
tp_ip
()
.
PHP_EOL
,
FILE_APPEND
);
return
false
;
}
$wyTplId
=
C
(
'wyTplId'
);
$data
=
array
(
'mobile'
=>
$mobile
,
'add_time'
=>
time
(),
...
...
@@ -60,8 +61,9 @@ class SmsModel extends Model{
'user_id'
=>
$data
[
'user_id'
]
?
intval
(
$data
[
'user_id'
])
:
0
,
'msg'
=>
$content
,
'ip'
=>
tp_ip
(),
'code'
=>
$data
[
'code'
]
'code'
=>
$data
[
'code'
]
,
);
if
(
isset
(
$wyTplId
[
$type
]))
$data
[
'channel'
]
=
2
;
$status
=
$this
->
data
(
$data
)
->
add
();
if
(
$status
){
//放到队列
...
...
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