Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
李洋
/
消息系统
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
61e69319
authored
Aug 29, 2019
by
孙龙
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
批量发送消息
parent
3ce0882a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
app/Http/Controllers/MessageApiController.php
resources/views/message/sendmanualmessage.blade.php
app/Http/Controllers/MessageApiController.php
View file @
61e69319
...
...
@@ -584,7 +584,7 @@ class MessageApiController extends Controller
if
(
count
(
$_params
)
!=
count
(
$title
)
-
1
)
throw
new
\Exception
(
sprintf
(
"第%s行参数不一致"
,
$key
+
1
));
foreach
(
$_params
as
$kk
=>
$vv
){
if
(
!
$vv
)
break
;
$params
[
array_get
(
$title
,
$kk
)]
=
strval
(
$vv
);
$params
[
array_get
(
$title
,
$kk
)]
=
strval
(
trim
(
$vv
)
);
}
if
(
!
$touser
)
throw
new
\Exception
(
'接收者不能为空'
);
if
(
count
(
$params
)
<=
0
)
throw
new
\Exception
(
'没找到对应参数'
);
...
...
@@ -594,7 +594,7 @@ class MessageApiController extends Controller
$_data
[
'template_id'
]
=
$info
->
tpl_id
;
$_data
[
'keyword'
]
=
$info
->
description
;
$_data
[
'channel_type'
]
=
$info
->
channels
;
$_data
[
'touser'
]
=
strval
(
$touser
);
$_data
[
'touser'
]
=
strval
(
trim
(
$touser
)
);
$_data
[
'data'
]
=
$params
;
$_data
[
'url'
]
=
''
;
$_data
[
'wechat_data'
]
=
null
;
...
...
resources/views/message/sendmanualmessage.blade.php
View file @
61e69319
...
...
@@ -246,7 +246,7 @@
<tbody>
<tr>
<td>
批量发送站内信
</td>
<td>
短
信
</td>
<td>
站内
信
</td>
<td>
其它
</td>
<td>
展会活动
</td>
<td><a
class=
"layui-btn"
href=
"/export/zhanneixin.xls"
>
下载
</a></td>
...
...
@@ -255,7 +255,7 @@
<td
colspan=
"4"
>
<div><span
style=
"color: #ff0000"
>
备注:
</span></div>
<div>
列字段:[1:会员
账号] [2:京东卡余额] [3:卡号] [4:卡密
]
列字段:[1:会员
ID(消息接收者)] [2:京东卡余额(消息模板字段)] [3:卡号(消息模板字段)] [4:卡密(消息模板字段)
]
</div>
</td>
</tr>
...
...
@@ -269,7 +269,7 @@
<tr>
<td
colspan=
"4"
>
<div><span
style=
"color: #ff0000"
>
备注:
</span></div>
<div>
列字段:[1:用户
] [ 2:name] [3:otherinfo] [4:admin] [5:passwd
]
</div>
<div>
列字段:[1:用户
(消息接收者)] [ 2:name(消息模板字段)] [3:otherinfo(消息模板字段)] [4:admin(消息模板字段)] [5:passwd(消息模板字段)
]
</div>
</td>
</tr>
<tr>
...
...
@@ -283,7 +283,7 @@
<td
colspan=
"4"
>
<div><span
style=
"color: #ff0000"
>
备注:
</span></div>
<div>
列字段:[1:用户
] [ 2:name] [3:otherinfo
]
列字段:[1:用户
(消息接收者)] [ 2:name(消息模板字段)] [3:otherinfo(消息模板字段)
]
</div>
</td>
</tr>
...
...
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