Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
services
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
tencent
services
Commits
ae149c03
Commit
ae149c03
authored
Nov 22, 2019
by
xmy
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'comments'
parents
f8dc525b
1eab15de
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
44 additions
and
17 deletions
+44
-17
src/Comments/Enum/CommentsEnum.php
+13
-0
src/Notice/Enum/NoticeEnum.php
+19
-17
src/Notice/Lib/NoticeInterface.php
+12
-0
No files found.
src/Comments/Enum/CommentsEnum.php
0 → 100644
View file @
ae149c03
<?php
namespace
Hdll\Services\Comments\Enum
;
class
CommentsEnum
{
const
VIRTUAL_COMMENTS
=
0
;
//虚拟评论
const
REAL_COMMENTS
=
1
;
//真实评论
const
CHILD_COMMENTS
=
2
;
//子评论
const
CATEGORY_ACTIVITY_TLP
=
1
;
//活动模版分类
}
\ No newline at end of file
src/Notice/Enum/NoticeEnum.php
View file @
ae149c03
...
...
@@ -5,33 +5,34 @@
* Date: 2018/7/5
* Time: 13:15
*/
namespace
Hdll\Services\Notice\Enum
;
class
NoticeEnum
{
//商家小程序发送
const
TYPE_MINI_BACKEND_SEND
=
100
;
//腾讯sms发送
const
TYPE_TENCENT_SMS
=
150
;
//买家小程序消息推送
const
TYPE_MINI_FRONTEND_SEND
=
101
;
const
TYPE_MP_SEND
=
102
;
//商家小程序发送
const
TYPE_MINI_BACKEND_SEND
=
100
;
const
SEND_TYPES
=
[
self
::
TYPE_MINI_BACKEND_SEND
,
self
::
TYPE_TENCENT_SMS
,
self
::
TYPE_MINI_FRONTEND_SEND
,
self
::
TYPE_MP_SEND
,
];
//腾讯sms发送
const
TYPE_TENCENT_SMS
=
150
;
//买家小程序消息推送
const
TYPE_MINI_FRONTEND_SEND
=
101
;
//公众号发送
const
TYPE_MP_SEND
=
102
;
//系统消息发送
const
TYPE_SYSTEM_SEND
=
103
;
const
SEND_TYPES
=
[
self
::
TYPE_MINI_BACKEND_SEND
,
self
::
TYPE_TENCENT_SMS
,
self
::
TYPE_MINI_FRONTEND_SEND
,
self
::
TYPE_MP_SEND
,
self
::
TYPE_SYSTEM_SEND
,
];
}
\ No newline at end of file
src/Notice/Lib/NoticeInterface.php
View file @
ae149c03
...
...
@@ -80,6 +80,18 @@ interface NoticeInterface
]
];
*
* 系统发送消息数据结构
$data[NoticeEnum::TYPE_SYSTEM_SEND] = [
NoticeEnum::TYPE_SYSTEM_SEND=>[
'storeId' => 198
"userId" => "1", //用户id
"content" => "内容",
"page" => "", //页面地址
"isUpdate"=> bool ,//是否更新 根据page storeId userId更新未读消息内容
]
];
*
*
* @param array $sendTypes
* @param array $data
* @param $sendTime //如果需要多个时间段发送则填写时间戳数组例如:[15800000,1580000]
...
...
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