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
b021a913
Commit
b021a913
authored
Dec 06, 2018
by
feixiang
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
15c12c85
0f737781
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
23 additions
and
3 deletions
+23
-3
UPGRADE.md
+6
-0
src/Cmq/Account.php
+3
-1
src/Common/Config/config.php
+2
-2
src/GroupBooking/Enum/GroupBookingCmqEnum.php
+10
-0
src/SellerDistribution/Enum/SellerDistributionCmqEnum.php
+2
-0
No files found.
UPGRADE.md
View file @
b021a913
# 1.0.28
-
拼团 消息队列枚举
# 1.0.27
-
cmq 内外网切换
# 1.0.26
-
卖家分销 消息队列枚举
# 1.0.25
-
佣金操作增加用于幂等验证的uniqueId
# 1.0.24
...
...
src/Cmq/Account.php
View file @
b021a913
...
...
@@ -29,7 +29,9 @@ class Account
{
$config
=
include
alias
(
'@vendor/hdll/services/src/Common/Config'
)
.
'/config.php'
;
$config
=
$config
[
'cmq'
];
$this
->
host
=
empty
(
$host
)
?
$config
[
'host'
]
:
$host
;
if
(
empty
(
$host
)){
$this
->
host
=
empty
(
env
(
'ENVIRONMENT'
,
''
))
?
$config
[
'intranet_host'
]
:
$config
[
'internet_host'
];
}
$this
->
secretId
=
empty
(
$secretId
)
?
$config
[
'secretId'
]
:
$secretId
;
$this
->
secretKey
=
empty
(
$secretKey
)
?
$config
[
'secretKey'
]
:
$secretKey
;
$this
->
cmq_client
=
new
CMQClient
(
$this
->
host
,
$this
->
secretId
,
$this
->
secretKey
);
...
...
src/Common/Config/config.php
View file @
b021a913
...
...
@@ -18,8 +18,8 @@ return [
'secretKey'
=>
'IPL5g5PaaSAzd6NSO8gEmLxcN4pTzJSQ'
,
],
'cmq'
=>
[
// '
host' => 'http://cmq-topic-bj.api.tencentyun.com',//内网
'host'
=>
'https://cmq-topic-bj.api.qcloud.com'
,
//外网
'intranet_
host'
=>
'http://cmq-topic-bj.api.tencentyun.com'
,
//内网
'
internet_
host'
=>
'https://cmq-topic-bj.api.qcloud.com'
,
//外网
'secretId'
=>
'AKIDYRW1cG2iVIg8dAoCe86vhNuA7A5oNknk'
,
'secretKey'
=>
'z0ymS7xfLrP6Sk2EKHWaXN6d0EIxX0IQ'
,
],
...
...
src/GroupBooking/Enum/GroupBookingCmqEnum.php
0 → 100644
View file @
b021a913
<?php
namespace
Hdll\Services\GroupBooking\Enum
;
class
GroupBookingCmqEnum
{
const
TOPIC
=
'groupBooking'
;
const
CLOSE_RECORD
=
'closeRecord'
;
}
\ No newline at end of file
src/SellerDistribution/Enum/SellerDistributionCmqEnum.php
View file @
b021a913
...
...
@@ -9,4 +9,5 @@ class SellerDistributionCmqEnum{
const
REDUCE_BALANCE
=
'reduceBalance'
;
const
ADD_TOTAL
=
'addTotal'
;
const
REFUND_ADD_BALANCE
=
'refundAddBalance'
;
const
UPDATE_BILL
=
'updateBill'
;
}
\ No newline at end of file
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