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
ba6d4eee
Commit
ba6d4eee
authored
Jun 04, 2020
by
xmy
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
d6556868
69911c3f
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
21 additions
and
4 deletions
+21
-4
UPGRADE_2.x.md
+12
-0
src/Auth/Enum/AuthEnum.php
+2
-0
src/Common/Config/CfgCenter.php
+1
-0
src/V2/Common/ClsLogger/ClsLog.php
+1
-1
src/V2/Common/ClsLogger/LogHandler.php
+2
-2
src/V2/Common/Config/CfgCenter.php
+3
-1
No files found.
UPGRADE_2.x.md
View file @
ba6d4eee
# 2.0.64
-
修改sgo函数
# 2.0.63
-
增加流量平台支付枚举
# 2.0.62
-
流量平台-分享达人
# 2.0.61
-
流量平台-上线修复
# 2.0.60
-
流量平台
...
...
src/Auth/Enum/AuthEnum.php
View file @
ba6d4eee
...
...
@@ -19,6 +19,7 @@ class AuthEnum
const
SCOPE_OEMADM
=
3.1
;
//oem管理员
const
SCOPE_SALESMAN
=
3.2
;
//流量平台业务员
const
SCOPE_TRAFFIC_SELLER
=
3.3
;
//流量平台商家
const
SCOPE_SHARER_TALENT
=
3.4
;
//流量平台分享达人
const
SCOPE_ADMIN
=
4
;
//管理员
const
SCOPE_SUPER_ADMIN
=
5
;
//超级管理员
...
...
@@ -38,6 +39,7 @@ class AuthEnum
const
AUTH_TYPE_SALESMAN
=
206
;
// 流量平台业务员
const
AUTH_TYPE_TRAFFIC_BUYER
=
207
;
// 流量平台的买家
const
AUTH_TYPE_TRAFFIC_SELLER
=
208
;
// 流量平台的商家
const
AUTH_TYPE_SHARER_TALENT
=
209
;
// 流量平台的分享达人
...
...
src/Common/Config/CfgCenter.php
View file @
ba6d4eee
...
...
@@ -24,6 +24,7 @@ class CfgCenter
const
PAY_ZHIMEI
=
'pay_zhimei'
;
//致美的支付配置
const
PAY_TRANSFER
=
'pay_transfer'
;
//提现打款专用的支付配置
const
PAY_YUNMAIKEJI
=
'pay_yunmaikeji'
;
// 云脉科技支付
const
PAY_TRAFFIC
=
'pay_traffic'
;
// 流量平台支付
const
SELLER_DISTRIBUTION
=
'seller_distribution'
;
//卖家分销配置
const
MP_ZHIMEI
=
'mp_zhimei'
;
//致美的公众号配置
const
MP_OEMADM
=
'mp_oemadm'
;
// OEM机构管理员公众号后台,使用云脉科技公众号
...
...
src/V2/Common/ClsLogger/ClsLog.php
View file @
ba6d4eee
...
...
@@ -84,7 +84,7 @@ class ClsLog
$logFile
=
\alias
(
'@runtime'
)
.
'/logs/'
.
$filename
;
if
(
Co
::
id
()
>
0
)
{
// 协程写
go
(
function
()
use
(
$logFile
,
$messageText
)
{
s
go
(
function
()
use
(
$logFile
,
$messageText
)
{
$res
=
Coroutine
::
writeFile
(
$logFile
,
$messageText
,
FILE_APPEND
);
if
(
$res
===
false
)
{
throw
new
\InvalidArgumentException
(
"Unable to append to log file:
{
$logFile
}
"
);
...
...
src/V2/Common/ClsLogger/LogHandler.php
View file @
ba6d4eee
...
...
@@ -84,7 +84,7 @@ class LogHandler extends AbstractProcessingHandler
if
(
$this
->
topicId
==
ClsLog
::
TOPICID_ERROR
)
{
if
(
Co
::
id
()
>
0
)
{
go
(
function
()
use
(
$messageText
)
{
s
go
(
function
()
use
(
$messageText
)
{
ClsLog
::
error
(
$messageText
);
});
}
else
{
...
...
@@ -92,7 +92,7 @@ class LogHandler extends AbstractProcessingHandler
}
}
else
if
(
$this
->
topicId
==
ClsLog
::
TOPICID_NOTICE
)
{
if
(
Co
::
id
()
>
0
)
{
go
(
function
()
use
(
$messageText
)
{
s
go
(
function
()
use
(
$messageText
)
{
ClsLog
::
notice
(
$messageText
);
});
}
else
{
...
...
src/V2/Common/Config/CfgCenter.php
View file @
ba6d4eee
...
...
@@ -23,6 +23,7 @@ class CfgCenter
const
PAY_ZHIMEI
=
'pay_zhimei'
;
//致美的支付配置
const
PAY_TRANSFER
=
'pay_transfer'
;
//提现打款专用的支付配置
const
PAY_YUNMAIKEJI
=
'pay_yunmaikeji'
;
// 云脉科技支付
const
PAY_TRAFFIC
=
'pay_traffic'
;
// 流量平台支付
const
SELLER_DISTRIBUTION
=
'seller_distribution'
;
//卖家分销配置
const
MP_ZHIMEI
=
'mp_zhimei'
;
//致美的公众号配置
const
MP_OEMADM
=
'mp_oemadm'
;
// OEM机构管理员公众号后台,使用云脉科技公众号
...
...
@@ -174,7 +175,8 @@ class CfgCenter
if
(
$database
==
''
)
{
$database
=
'config_center'
;
}
if
(
\env
(
'APP_DEV'
)
==
'prod'
)
{
if
(
\env
(
'APP_ENV'
)
==
'prod'
)
{
// 返回线上数据库连接
return
new
\Medoo\Medoo
([
'database_type'
=>
'mysql'
,
...
...
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