Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
goods
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
bp
goods
Commits
ff689edf
Commit
ff689edf
authored
Jun 21, 2021
by
jianghaiming
Browse files
Options
Browse Files
Download
Plain Diff
update:set
parents
d7f79908
ccf41451
Changes
31
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
31 changed files
with
963 additions
and
175 deletions
+963
-175
GoodsException.php
application/exception/custom/GoodsException.php
+1
-0
GoodsAddValidate.php
application/library/Validate/GoodsAddValidate.php
+4
-4
GoodsAuditValidate.php
application/library/Validate/GoodsAuditValidate.php
+2
-6
GoodsListCValidate.php
application/library/Validate/GoodsListCValidate.php
+21
-0
GoodsOnlineOfflineValidate.php
application/library/Validate/GoodsOnlineOfflineValidate.php
+23
-0
Distribution.php
application/models/distribution/mysql/Distribution.php
+2
-2
DistributionGoods.php
application/models/distribution/mysql/DistributionGoods.php
+2
-2
Distributor.php
application/models/distribution/mysql/Distributor.php
+4
-4
GoodsSku.php
application/models/goods/mysql/GoodsSku.php
+2
-2
Shop.php
application/models/shop/mysql/Shop.php
+2
-2
SubShop.php
application/models/shop/mysql/SubShop.php
+2
-2
Goods.php
application/modules/Goods/controllers/Goods.php
+18
-2
ElasticGoodService.php
application/services/goods/ElasticGoodService.php
+10
-9
GoodsService.php
application/services/goods/GoodsService.php
+173
-20
application.ini
conf/application.ini
+1
-1
SocialCreditCertification.php
..._services/src/Certification/SocialCreditCertification.php
+1
-1
InterDynamic.php
vendor/api/php_services/src/Interaction/InterDynamic.php
+438
-0
JwUser.php
vendor/api/php_services/src/JwUser/JwUser.php
+48
-25
Account.php
vendor/api/php_services/src/LifeAccount/Account.php
+38
-0
Request.php
vendor/api/php_utils/src/Http/Request.php
+79
-6
MonUtil.php
vendor/api/php_utils/src/Mon/MonUtil.php
+22
-1
MysqlBase.php
vendor/api/php_utils/src/Mysql/MysqlBase.php
+8
-45
MysqlClusterBase.php
vendor/api/php_utils/src/Mysql/MysqlClusterBase.php
+12
-19
README.md
vendor/api/php_utils/src/Mysql/README.md
+20
-0
WebLog.php
vendor/api/php_utils/src/Protobuf/WebsiteLog/WebLog.php
+2
-4
InstalledVersions.php
vendor/composer/InstalledVersions.php
+4
-4
autoload_classmap.php
vendor/composer/autoload_classmap.php
+6
-1
autoload_files.php
vendor/composer/autoload_files.php
+2
-2
autoload_static.php
vendor/composer/autoload_static.php
+8
-3
installed.json
vendor/composer/installed.json
+4
-4
installed.php
vendor/composer/installed.php
+4
-4
No files found.
application/exception/custom/GoodsException.php
View file @
ff689edf
...
...
@@ -29,5 +29,6 @@ class GoodsException extends BaseException
15
=>
'当前商品不存在'
,
16
=>
'到期时间不得小于当前时间'
,
17
=>
'商品名称重复,请重新修复'
,
18
=>
'库存设置不合理'
,
];
}
\ No newline at end of file
application/library/Validate/GoodsAddValidate.php
View file @
ff689edf
...
...
@@ -19,10 +19,10 @@ class GoodsAddValidate extends BaseValidate
'expiration_time'
=>
'require'
,
'rule_desc'
=>
'require'
,
'price'
=>
'require'
,
'inventory_
total
'
=>
'require'
,
'inventory_
add
'
=>
'require'
,
'life_account_id'
=>
'require'
,
'merchant_id'
=>
'require'
,
'u_id'
=>
'require'
,
'u
ser
_id'
=>
'require'
,
];
protected
$message
=
[
...
...
@@ -33,9 +33,9 @@ class GoodsAddValidate extends BaseValidate
'expiration_time'
=>
'请填写到期时间'
,
'rule_desc'
=>
'请填写使用规则'
,
'price'
=>
'请填写售价'
,
'inventory_
total
'
=>
'请填写库存'
,
'inventory_
add
'
=>
'请填写库存'
,
'life_account_id'
=>
'life_account_id 不能为空'
,
'merchant_id'
=>
'merchant_id 不能为空'
,
'u
_id'
=>
'u
_id 不能为空'
,
'u
ser_id'
=>
'user
_id 不能为空'
,
];
}
\ No newline at end of file
application/library/Validate/GoodsAuditValidate.php
View file @
ff689edf
...
...
@@ -13,15 +13,11 @@ class GoodsAuditValidate extends BaseValidate
{
protected
$rule
=
[
'goods_spu_id'
=>
'require'
,
'online_status'
=>
'require'
,
'uid'
=>
'require'
,
'username'
=>
'require'
,
'status'
=>
'require'
,
];
protected
$message
=
[
"goods_spu_id"
=>
"商品id不能为空"
,
"online_status"
=>
"商品上下架状态不能为空"
,
"uid"
=>
"用户id不能为空"
,
"username"
=>
"用户username不能为空"
,
"status"
=>
"商品审核状态不能为空"
,
];
}
\ No newline at end of file
application/library/Validate/GoodsListCValidate.php
0 → 100644
View file @
ff689edf
<?php
namespace
Validate
;
/**
* Class GoodsListCValidate
*
* @package Validate
*/
class
GoodsListCValidate
extends
BaseValidate
{
protected
$rule
=
[
'life_account_id'
=>
'require'
,
];
protected
$message
=
[
"life_account_id"
=>
"生活号id不能为空"
,
];
}
\ No newline at end of file
application/library/Validate/GoodsOnlineOfflineValidate.php
0 → 100644
View file @
ff689edf
<?php
namespace
Validate
;
/**
* Class GoodsOnlineOfflineValidate
*
* @package Validate
*/
class
GoodsOnlineOfflineValidate
extends
BaseValidate
{
protected
$rule
=
[
'goods_spu_id'
=>
'require'
,
'online_status'
=>
'require'
,
];
protected
$message
=
[
"goods_spu_id"
=>
"商品id不能为空"
,
"online_status"
=>
"商品审核状态不能为空"
,
];
}
\ No newline at end of file
application/models/distribution/mysql/Distribution.php
View file @
ff689edf
...
...
@@ -56,8 +56,8 @@ class Distribution extends MysqlBase
return
self
::
select
(
$colums
,
$where
);
}
public
static
function
getCount
(
$where
)
public
static
function
getCount
(
$where
,
$columns
=
"*"
)
{
return
self
::
count
(
$where
);
return
self
::
count
(
$
columns
,
$
where
);
}
}
application/models/distribution/mysql/DistributionGoods.php
View file @
ff689edf
...
...
@@ -60,8 +60,8 @@ class SubShop extends MysqlBase
return
self
::
select
(
$colums
,
$where
);
}
public
static
function
getCount
(
$where
)
public
static
function
getCount
(
$where
,
$columns
=
"*"
)
{
return
self
::
count
(
$where
);
return
self
::
count
(
$
columns
,
$
where
);
}
}
application/models/distribution/mysql/Distributor.php
View file @
ff689edf
...
...
@@ -56,11 +56,11 @@ class Distributor extends MysqlBase
return
self
::
select
(
$colums
,
$where
);
}
public
static
function
getCount
(
$where
)
public
static
function
getCount
(
$where
,
$columns
=
"*"
)
{
if
(
empty
(
$colums
))
{
$colums
=
'*'
;
if
(
empty
(
$colum
n
s
))
{
$colum
n
s
=
'*'
;
}
return
self
::
count
(
$colum
s
,
$where
);
return
self
::
count
(
$colum
ns
,
$where
);
}
}
application/models/goods/mysql/GoodsSku.php
View file @
ff689edf
...
...
@@ -51,8 +51,8 @@ class GoodsSku extends MysqlBase
return
self
::
delete
(
$where
);
}
public
static
function
getCount
(
$where
)
public
static
function
getCount
(
$where
,
$columns
=
"*"
)
{
return
self
::
count
(
$where
);
return
self
::
count
(
$
columns
,
$
where
);
}
}
\ No newline at end of file
application/models/shop/mysql/Shop.php
View file @
ff689edf
...
...
@@ -59,8 +59,8 @@ class Shop extends MysqlBase
return
self
::
select
(
$colums
,
$where
);
}
public
static
function
getCount
(
$where
)
public
static
function
getCount
(
$where
,
$columns
=
"*"
)
{
return
self
::
count
(
$where
);
return
self
::
count
(
$
columns
,
$
where
);
}
}
application/models/shop/mysql/SubShop.php
View file @
ff689edf
...
...
@@ -60,8 +60,8 @@ class SubShop extends MysqlBase
return
self
::
select
(
$colums
,
$where
);
}
public
static
function
getCount
(
$where
)
public
static
function
getCount
(
$where
,
$columns
=
"*"
)
{
return
self
::
count
(
$where
);
return
self
::
count
(
$
columns
,
$
where
);
}
}
application/modules/Goods/controllers/Goods.php
View file @
ff689edf
...
...
@@ -9,6 +9,8 @@ use \Validate\GoodsAddValidate;
use
\Validate\GoodsEditValidate
;
use
\Validate\GoodsInfoOpValidate
;
use
\Validate\GoodsInfoFeValidate
;
use
\Validate\GoodsListCValidate
;
use
\Validate\GoodsOnlineOfflineValidate
;
use
\App\Services\goods\ElasticGoodService
;
...
...
@@ -78,7 +80,7 @@ class GoodsController extends Base
*/
public
function
online_offlineAction
()
{
(
new
Goods
Audit
Validate
())
->
validate
();
(
new
Goods
OnlineOffline
Validate
())
->
validate
();
$params
=
$this
->
params
;
GoodsService
::
onlineOrOffline
(
$params
);
...
...
@@ -132,11 +134,25 @@ class GoodsController extends Base
* c端 es:商品列表 (sku list)
* @throws Exception
*/
public
function
goods_list_
c
Action
()
public
function
goods_list_
es
Action
()
{
$params
=
$this
->
params
;
$data
=
ElasticGoodService
::
searchDoc
(
$params
);
$this
->
success
([
"result"
=>
$data
]);
}
/**
* 商家 - 商品列表 (sku list)
* @throws Exception
*/
public
function
goods_list_cAction
()
{
(
new
GoodsListCValidate
())
->
validate
();
$params
=
$this
->
params
;
$data
=
GoodsService
::
getCGoodsSkuList
(
$params
[
"life_account_id"
]);
$this
->
success
([
"result"
=>
$data
]);
}
}
\ No newline at end of file
application/services/goods/ElasticGoodService.php
View file @
ff689edf
...
...
@@ -2,6 +2,7 @@
namespace
App\Services\goods
;
use
Api\PhpUtils\Common\BaseConvert
;
use
Api\PhpUtils\Elastic\ElasticUtil
;
class
ElasticGoodService
...
...
@@ -105,15 +106,15 @@ class ElasticGoodService
if
(
!
empty
(
$res
[
"hits"
][
"total"
][
"value"
]))
{
$result
[
"count"
]
=
$res
[
"hits"
][
"total"
][
"value"
];
foreach
(
$res
[
"hits"
][
"hits"
]
as
$key
=>
$source
)
{
$result
[
"
data"
][
$key
][
"id"
]
=
$source
[
"_source"
][
"id"
]
;
$result
[
"
data
"
][
$key
][
"goods_pic"
]
=
$source
[
"_source"
][
"goods_pic"
];
$result
[
"
data
"
][
$key
][
"name"
]
=
$source
[
"_source"
][
"name"
];
$result
[
"
data
"
][
$key
][
"inventory_rest"
]
=
$source
[
"_source"
][
"inventory_rest"
];
$result
[
"
data
"
][
$key
][
"total_amount_sold"
]
=
$source
[
"_source"
][
"total_amount_sold"
];
$result
[
"
data
"
][
$key
][
"original_price"
]
=
$source
[
"_source"
][
"original_price"
];
$result
[
"
data
"
][
$key
][
"price"
]
=
$source
[
"_source"
][
"price"
];
$result
[
"
data
"
][
$key
][
"status"
]
=
$source
[
"_source"
][
"status"
];
$result
[
"
data
"
][
$key
][
"online_status"
]
=
$source
[
"_source"
][
"online_status"
];
$result
[
"
list"
][
$key
][
"id"
]
=
BaseConvert
::
decToOther
(
$source
[
"_source"
][
"id"
])
;
$result
[
"
list
"
][
$key
][
"goods_pic"
]
=
$source
[
"_source"
][
"goods_pic"
];
$result
[
"
list
"
][
$key
][
"name"
]
=
$source
[
"_source"
][
"name"
];
$result
[
"
list
"
][
$key
][
"inventory_rest"
]
=
$source
[
"_source"
][
"inventory_rest"
];
$result
[
"
list
"
][
$key
][
"total_amount_sold"
]
=
$source
[
"_source"
][
"total_amount_sold"
];
$result
[
"
list
"
][
$key
][
"original_price"
]
=
$source
[
"_source"
][
"original_price"
];
$result
[
"
list
"
][
$key
][
"price"
]
=
$source
[
"_source"
][
"price"
];
$result
[
"
list
"
][
$key
][
"status"
]
=
$source
[
"_source"
][
"status"
];
$result
[
"
list
"
][
$key
][
"online_status"
]
=
$source
[
"_source"
][
"online_status"
];
}
}
//为避免空数据时候返回给前端错误结构
...
...
application/services/goods/GoodsService.php
View file @
ff689edf
This diff is collapsed.
Click to expand it.
conf/application.ini
View file @
ff689edf
...
...
@@ -24,7 +24,7 @@ exception.sys.code = -1
exception.sys.msg
=
"system error"
[prod
uct
: common : exception]
[prod : common : exception]
[pre : common : exception]
[test : common : exception]
[dev : common : exception]
\ No newline at end of file
vendor/api/php_services/src/Certification/SocialCreditCertification.php
View file @
ff689edf
...
...
@@ -79,7 +79,7 @@ class SocialCreditCertification
'databaseImageContent'
=>
$base64_image
];
$result
=
(
new
Request
())
->
post
(
self
::
ocr_bussiness_url
,
$post_data
,
30
00
,
'json'
,[],
1
);
$result
=
(
new
Request
())
->
post
(
self
::
ocr_bussiness_url
,
$post_data
,
25
00
,
'json'
,[],
1
);
if
(
isset
(
$result
[
'code'
],
$result
[
'response'
])
&&
$result
[
'code'
]
===
0
)
{
return
$result
[
'response'
];
...
...
vendor/api/php_services/src/Interaction/InterDynamic.php
0 → 100644
View file @
ff689edf
This diff is collapsed.
Click to expand it.
vendor/api/php_services/src/JwUser/JwUser.php
View file @
ff689edf
<?php
/**
* Description of JwUser.php
*
...
...
@@ -23,8 +24,8 @@ class JwUser
*/
public
function
getUserInfo
(
$params
)
{
$url
=
config
(
'interface'
,
'service.jw_user.get_user_info'
);
if
(
!
$url
)
{
$url
=
config
(
'interface'
,
'service.jw_user.get_user_info'
);
if
(
!
$url
)
{
throw
new
CodeSpecialException
(
"failed"
);
}
...
...
@@ -34,7 +35,7 @@ class JwUser
$params
=
[
"mobilePhone"
=>
$params
[
'mobile'
]];
$user_info
=
(
new
TimeOut
())
->
runGet
(
$url
,
$params
);
if
(
!
$user_info
)
{
if
(
!
$user_info
)
{
throw
new
CodeSpecialException
(
"timeout"
);
}
return
$user_info
;
...
...
@@ -45,8 +46,8 @@ class JwUser
*/
public
function
getUserByUserId
(
$params
)
{
$url
=
config
(
'interface'
,
'service.jw_user.get_user_info_by_user_id'
);
if
(
!
$url
)
{
$url
=
config
(
'interface'
,
'service.jw_user.get_user_info_by_user_id'
);
if
(
!
$url
)
{
throw
new
CodeSpecialException
(
"failed"
);
}
...
...
@@ -56,7 +57,7 @@ class JwUser
$params
=
[
"userId"
=>
$params
[
'user_id'
]];
$user_info
=
(
new
TimeOut
())
->
runPost
(
$url
,
$params
);
if
(
!
$user_info
)
{
if
(
!
$user_info
)
{
throw
new
CodeSpecialException
(
"timeout"
);
}
return
$user_info
;
...
...
@@ -64,8 +65,8 @@ class JwUser
public
function
getUserList
(
$params
)
{
$url
=
config
(
'interface'
,
'service.jw_user.get_user_list'
);
if
(
!
$url
)
{
$url
=
config
(
'interface'
,
'service.jw_user.get_user_list'
);
if
(
!
$url
)
{
throw
new
CodeSpecialException
(
"failed"
);
}
...
...
@@ -75,7 +76,7 @@ class JwUser
$params
=
[
"userIds"
=>
$params
[
'user_id'
]];
$user_info
=
(
new
TimeOut
())
->
runPost
(
$url
,
$params
);
if
(
!
$user_info
)
{
if
(
!
$user_info
)
{
throw
new
CodeSpecialException
(
"timeout"
);
}
return
$user_info
;
...
...
@@ -89,13 +90,13 @@ class JwUser
*/
public
function
getAllCityTree
()
{
$url
=
config
(
'interface'
,
'service.jw_user.get_all_city_tree'
);
if
(
!
$url
)
{
$url
=
config
(
'interface'
,
'service.jw_user.get_all_city_tree'
);
if
(
!
$url
)
{
throw
new
CodeSpecialException
(
"failed"
);
}
$params
=
[];
$city_list
=
(
new
TimeOut
())
->
runGet
(
$url
,
$params
);
if
(
!
$city_list
)
{
if
(
!
$city_list
)
{
throw
new
CodeSpecialException
(
"timeout"
);
}
return
$city_list
;
...
...
@@ -109,8 +110,8 @@ class JwUser
*/
public
function
savePushToken
(
$params
)
{
$url
=
config
(
'interface'
,
'service.jw_user.save_push_token'
);
if
(
!
$url
)
{
$url
=
config
(
'interface'
,
'service.jw_user.save_push_token'
);
if
(
!
$url
)
{
throw
new
CodeSpecialException
(
"failed"
);
}
...
...
@@ -118,10 +119,32 @@ class JwUser
throw
new
CodeSpecialException
(
"failed"
);
}
$pushToken
=
(
new
TimeOut
())
->
runPost
(
$url
,
$params
);
if
(
!
$pushToken
)
{
if
(
!
$pushToken
)
{
throw
new
CodeSpecialException
(
"timeout"
);
}
return
$pushToken
;
}
/**
* 获取简网用户动态
*/
public
function
getUserListWithDynamic
(
$params
)
{
$url
=
config
(
'interface'
,
'service.jw_user.get_user_dynamic'
);
if
(
!
$url
)
{
throw
new
CodeSpecialException
(
"failed"
);
}
if
(
empty
(
$params
[
'user_id'
]))
{
throw
new
CodeSpecialException
(
"failed"
);
}
$params
=
[
"userIds"
=>
$params
[
'user_id'
]];
$list
=
(
new
TimeOut
())
->
runPost
(
$url
,
$params
);
if
(
!
$list
)
{
throw
new
CodeSpecialException
(
"timeout"
);
}
return
$list
;
}
}
vendor/api/php_services/src/LifeAccount/Account.php
View file @
ff689edf
...
...
@@ -37,4 +37,42 @@ class Account
}
return
$list
;
}
/**
* 批量获取生活号表数据
*
*@param $params['user_id'] 主键id
*
*/
public
static
function
getLifeList
(
$params
)
{
$url
=
config
(
'interface'
,
'merchant.account.get_life_list'
);
if
(
!
$url
)
{
throw
new
CodeSpecialException
(
"failed"
);
}
$list
=
(
new
TimeOut
())
->
runGet
(
$url
,
$params
);
if
(
!
$list
)
{
throw
new
CodeSpecialException
(
"timeout"
);
}
return
$list
;
}
/**
* 批量获取用户表数据
*
*@param $params['user_id'] 主键id
*
*/
public
static
function
getUserList
(
$params
)
{
$url
=
config
(
'interface'
,
'merchant.account.get_user_list'
);
if
(
!
$url
)
{
throw
new
CodeSpecialException
(
"failed"
);
}
$list
=
(
new
TimeOut
())
->
runGet
(
$url
,
$params
);
if
(
!
$list
)
{
throw
new
CodeSpecialException
(
"timeout"
);
}
return
$list
;
}
}
vendor/api/php_utils/src/Http/Request.php
View file @
ff689edf
...
...
@@ -148,7 +148,7 @@ class Request
$options
[
'on_stats'
]
=
function
(
TransferStats
$stats
)
use
(
$use_mon
,
$url
)
{
$this
->
result
[
'http_code'
]
=
$stats
->
getHandlerStat
(
'http_code'
);
if
(
!
empty
(
$use_mon
))
{
//MonUtil::proxyMon(
$url, $stats->getHandlerStat('http_code'), round($stats->getHandlerStat('total_time'),4) * 1000);
MonUtil
::
proxyMon
(
$use_mon
,
$url
,
$stats
->
getHandlerStat
(
'http_code'
),
round
(
$stats
->
getHandlerStat
(
'total_time'
),
4
)
*
1000
);
}
};
//异步post请求
...
...
@@ -266,6 +266,74 @@ class Request
return
$ch
;
}
static
function
NEW_CURL
(
$url
,
$timeout
,
$retries
,
$headers
,
$post
=
false
,
$proxy
=
false
,
$has_curl_file
=
null
,
$method
=
'GET'
,
$curl_opts
=
array
())
{
$use_mon
=
false
;
//是否使用监控打点服务标志
//$proxy 取值为true,表示依赖第三方服务,要进行监控打点
if
(
$proxy
==
true
){
$use_mon
=
true
;
$proxy
=
false
;
}
$ch
=
self
::
CURL
(
$url
,
$timeout
,
$headers
,
$post
,
$proxy
,
$has_curl_file
,
$method
,
$curl_opts
);
$result
=
false
;
if
(
is_resource
(
$ch
)
===
true
)
{
while
((
$result
===
false
)
&&
(
$retries
--
>
0
))
{
$result
=
curl_exec
(
$ch
);
}
if
(
curl_errno
(
$ch
)
!==
0
)
{
$GLOBALS
[
'ERROR_MESSAGE'
]
=
curl_error
(
$ch
);
}
$GLOBALS
[
'HTTP_CODE'
]
=
curl_getinfo
(
$ch
,
CURLINFO_HTTP_CODE
);
if
(
isset
(
$GLOBALS
[
'ENABLE_HEADER_REQUEST_TIME'
])
)
{
$GLOBALS
[
'BELENDER_CURL_INFO'
]
=
curl_getinfo
(
$ch
);
//在返回header中添加blender响应时间
$GLOBALS
[
'DEPENDENT-REQUEST-TIME'
]
=
round
(
curl_getinfo
(
$ch
,
CURLINFO_TOTAL_TIME
),
4
)
.
'|'
.
round
(
curl_getinfo
(
$ch
,
CURLINFO_NAMELOOKUP_TIME
),
4
)
.
'|'
.
round
(
curl_getinfo
(
$ch
,
CURLINFO_CONNECT_TIME
),
4
);
$GLOBALS
[
'DEPENDENT-REQUEST'
]
=
array
(
'url'
=>
$url
,
'method'
=>
$method
,
'body'
=>
$post
);
$GLOBALS
[
'DEPENDENT-URI'
]
=
parse_url
(
$url
,
PHP_URL_PATH
);
if
(
$GLOBALS
[
'HTTP_CODE'
]
===
0
)
{
$GLOBALS
[
'DEPENDENT-STATUS'
]
=
'timeout'
;
}
else
if
(
$GLOBALS
[
'HTTP_CODE'
]
!==
200
)
{
$GLOBALS
[
'DEPENDENT-STATUS'
]
=
'5xx'
;
}
else
{
$GLOBALS
[
'DEPENDENT-STATUS'
]
=
'normal'
;
}
}
// //监控打点,模块名默认为第三方服务url,指标为请求返回的HTTP_code与总响应时间
// //HTTP_CODE如果未设置,默认为-999
// if($use_mon){
// MonUtil::proxy_mon($url,
// isset($GLOBALS['HTTP_CODE']) ? $GLOBALS['HTTP_CODE'] : -999,
// false,
// round(curl_getinfo($ch, CURLINFO_TOTAL_TIME),4) * 1000
// );
// }
unset
(
$GLOBALS
[
'ENABLE_HEADER_REQUEST_TIME'
]);
// if ($post === false)
// {
// write_log($url, curl_errno($ch), curl_error($ch), __LINE__, __FILE__, '', $result);
// }
// else
// {
// write_log($url, curl_errno($ch), curl_error($ch), __LINE__, __FILE__, 'POST body '.var_export($post, true), $result);
// }
curl_close
(
$ch
);
}
return
$result
;
}
public
function
put
(
$url
,
$params
=
[],
$timeout
=
0
,
$content_type
=
''
,
$headers
=
[],
$retry
=
0
,
$use_mon
=
true
,
$proxy
=
''
)
{
...
...
@@ -405,6 +473,11 @@ class Request
}
}
public
function
CURL_POST
(
$url
,
$post
,
$timeout
=
10000
,
$retries
=
1
,
$headers
=
false
,
$proxy
=
false
,
$curl_opts
=
array
())
{
return
self
::
NEW_CURL
(
$url
,
$timeout
,
$retries
,
$headers
,
$post
,
$proxy
,
null
,
'POST'
,
$curl_opts
);
}
/**
* 并发执行get请求
* @param array $urls [0=>xxx,1=>xxx]
...
...
vendor/api/php_utils/src/Mon/MonUtil.php
View file @
ff689edf
...
...
@@ -89,7 +89,7 @@ class MonUtil{
*/
public
static
function
getMsg
(
$module
,
$index
,
$value
,
$type
){
if
(
is_string
(
$module
)
&&
!
empty
(
$module
)
&&
is_string
(
$index
)
&&
!
empty
(
$index
)){
return
"Ydbot.statsd.superfe.
api
."
.
$module
.
"."
.
$index
.
".1sec:"
.
$value
.
"|"
.
$type
;
return
"Ydbot.statsd.superfe.
bp
."
.
$module
.
"."
.
$index
.
".1sec:"
.
$value
.
"|"
.
$type
;
}
return
""
;
...
...
@@ -190,4 +190,25 @@ class MonUtil{
return
$result
;
}
/**
* 统计下接口返回的code
*
* @param $code
* @return mixed 监控打点数据或""
*/
public
static
function
uri_code_count
(
$code
){
$uri
=
explode
(
'?'
,
$_SERVER
[
'REQUEST_URI'
]);
//获取服务器的名字作为模块名,因grafana打点路径以"."分割,将服务器名中的"."转化为"_"
$module
=
str_replace
(
"."
,
"_"
,
$_SERVER
[
'SERVER_NAME'
]);
//因grafana打点路径的key只支持大小写字母、数字、中划线和下划线,将uri中的"/"转化为"_"进行打点
$index
=
str_replace
(
"/"
,
"_"
,
strval
(
$uri
[
0
]));
//排除uri加后缀.php的情况
$index
=
explode
(
"."
,
$index
);
$index
=
substr
(
$index
[
0
],
1
)
.
"."
.
strval
(
$code
);
return
self
::
counting
(
$module
,
$index
,
1
);
}
}
vendor/api/php_utils/src/Mysql/MysqlBase.php
View file @
ff689edf
...
...
@@ -21,16 +21,22 @@ use Api\PhpUtils\Log\FileLog;
* return number 插入为lasterInsertId:String 按需自己intval(),更新和删除返回影响条数
*
* 5. 根据镜像中php的版本选择使用version1.7.10 版本的Medoo类, 并进行了改造,去掉了join操作,增加了$options参数;
* $options参数可选项:
* - $options['max_execution_time'] = 10; // 单位毫秒
* - $options['rowCount'] = true; // 返回insert后的影响行数
* @see https://medoo.in (英文网站)
* @see https://medoo.lvtao.net (中文网站)
*/
/**
* @method static MysqlBase insert($data, $options)
* @method static MysqlBase insertDuplicate($data, $duplicate)
* @method static MysqlBase update($data, $where)
* @method static MysqlBase delete($where)
* @method static MysqlBase select($columns, $where, $options)
* @method static MysqlBase selectMaster($columns, $where, $options)
* @method static MysqlBase selectForUpdate($columns, $where, $options)
* @method static MysqlBase getMaster($columns, $where, $options)
* @method static MysqlBase get($columns, $where, $options)
* @method static MysqlBase count($columns, $where)
...
...
@@ -98,6 +104,8 @@ abstract class MysqlBase
"delete"
,
"selectMaster"
,
// 或使用/*master*/强制路由,对主从实时性要求较高的场景使用,分布式系统尽量用消息代替查主库等其他方案
"getMaster"
,
"selectForUpdate"
,
"insertDuplicate"
,
];
/**
...
...
@@ -154,51 +162,6 @@ abstract class MysqlBase
return
self
::
formatResult
(
$method
,
$arguments
);
}
/**
* selectForUpdate
*
* @return array
*/
public
static
function
selectForUpdate
(
$columns
,
$where
,
$options
=
null
)
{
$type
=
static
::
WRITE
;
self
::
$dbCurrentConnect
=
self
::
$dbConnect
[
$type
]
=
self
::
getConnection
(
$type
);
self
::
$sqlResut
=
self
::
$dbConnect
[
$type
]
->
selectForUpdate
(
static
::
TABLE_NAME
,
$columns
,
$where
,
$options
);
if
(
!
self
::
catchError
(
'selectForUpdate'
,
[
static
::
TABLE_NAME
,
$columns
,
$where
,
$options
]))
{
// 如果失败重试一次
self
::
$dbCurrentConnect
=
self
::
$dbConnect
[
$type
]
=
self
::
getConnection
(
$type
);
self
::
$sqlResut
=
self
::
$dbConnect
[
$type
]
->
selectForUpdate
(
static
::
TABLE_NAME
,
$columns
,
$where
,
$options
);
if
(
!
self
::
catchError
(
'selectForUpdate'
,
[
static
::
TABLE_NAME
,
$columns
,
$where
,
$options
]))
{
return
false
;
}
}
return
self
::
$sqlResut
;
}
/**
* insertDuplicate
*
* 批量使用:Medoo::raw
* insertDuplicate([['id' => 4,'name' => 'test1'], ['id' => 5,'name' => 'test2']], ['name' => Medoo::raw('VALUES(name)')]);
*
* @return int 单条时返回1insert成功,返回2表示重复数据更新成功
*/
public
static
function
insertDuplicate
(
$data
,
$duplicate
)
{
$type
=
static
::
WRITE
;
self
::
$dbCurrentConnect
=
self
::
$dbConnect
[
$type
]
=
self
::
getConnection
(
$type
);
self
::
$sqlResut
=
self
::
$dbConnect
[
$type
]
->
insertDuplicate
(
static
::
TABLE_NAME
,
$data
,
$duplicate
);
if
(
!
self
::
catchError
(
'insertDuplicate'
,
[
static
::
TABLE_NAME
,
$data
,
$duplicate
]))
{
// 如果失败重试一次
self
::
$dbCurrentConnect
=
self
::
$dbConnect
[
$type
]
=
self
::
getConnection
(
$type
);
self
::
$sqlResut
=
self
::
$dbConnect
[
$type
]
->
insertDuplicate
(
static
::
TABLE_NAME
,
$data
,
$duplicate
);
if
(
!
self
::
catchError
(
'insertDuplicate'
,
[
static
::
TABLE_NAME
,
$data
,
$duplicate
]))
{
return
false
;
}
}
return
self
::
formatResult
(
'insertDuplicate'
,
[
static
::
TABLE_NAME
,
$data
,
$duplicate
]);
}
/**
* 获取数据库连接
*
...
...
vendor/api/php_utils/src/Mysql/MysqlClusterBase.php
View file @
ff689edf
...
...
@@ -2,7 +2,7 @@
namespace
Api\PhpUtils\Mysql
;
use
Medoo
\Medoo
;
use
Api\PhpUtils\Mysql
\Medoo
;
use
Api\PhpUtils\Log\FileLog
;
/**
...
...
@@ -20,7 +20,7 @@ use Api\PhpUtils\Log\FileLog;
* return [] 查询结果为空
* return number 插入为lasterInsertId:String 按需自己intval(),更新和删除返回影响条数
*
* 5. 根据镜像中php的版本选择使用version1.7.10 版本的Medoo类,
不要升级!
* 5. 根据镜像中php的版本选择使用version1.7.10 版本的Medoo类,
并进行了改造,去掉了join操作,增加了$options参数;
* @see https://medoo.in (英文网站)
* @see https://medoo.lvtao.net (中文网站)
*/
...
...
@@ -129,6 +129,8 @@ abstract class MysqlClusterBase
"delete"
,
"selectMaster"
,
// 或使用/*master*/强制路由,对主从实时性要求较高的场景使用,分布式系统尽量用消息代替查主库等其他方案
"getMaster"
,
"selectForUpdate"
,
"insertDuplicate"
,
];
/**
...
...
@@ -185,7 +187,7 @@ abstract class MysqlClusterBase
if
(
!
self
::
catchError
(
$method
,
$arguments
))
{
// 如果失败重试一次
self
::
$dbCurrentConnect
=
self
::
$dbConnect
[
$type
.
':'
.
$dbShardingIndex
]
=
self
::
getConnection
(
$type
,
$dbShardingIndex
,
true
);
self
::
$dbCurrentConnect
=
self
::
$dbConnect
[
$type
.
':'
.
$dbShardingIndex
]
=
self
::
getConnection
(
$type
,
$dbShardingIndex
);
self
::
$sqlResut
=
call_user_func_array
([
self
::
$dbConnect
[
$type
.
':'
.
$dbShardingIndex
],
$method
],
$arguments
);
if
(
!
self
::
catchError
(
$method
,
$arguments
))
{
return
false
;
...
...
@@ -429,12 +431,6 @@ abstract class MysqlClusterBase
case
'selectmaster'
:
case
'get'
:
case
'getmaster'
:
// 不允许用join操作
if
(
count
(
$arguments
)
>
2
)
{
self
::
$errorInfo
=
[
'validation'
,
0
,
"sql exception use join:"
.
$method
.
"-"
.
json_encode
(
$arguments
)];
FileLog
::
error
(
"sql exception use join:"
.
$method
.
"-"
.
json_encode
(
$arguments
));
return
false
;
}
// 读取没有limit的强制加limit
if
(
!
isset
(
$arguments
[
1
][
'LIMIT'
]))
{
$arguments
[
1
][
'LIMIT'
]
=
5000
;
...
...
@@ -442,15 +438,6 @@ abstract class MysqlClusterBase
}
break
;
case
'count'
:
// 不允许用join操作
if
(
count
(
$arguments
)
>
1
)
{
self
::
$errorInfo
=
[
'validation'
,
0
,
"sql exception use join:"
.
$method
.
"-"
.
json_encode
(
$arguments
)];
FileLog
::
error
(
"sql exception use join:"
.
$method
.
"-"
.
json_encode
(
$arguments
));
return
false
;
}
break
;
default
:
break
;
}
...
...
@@ -591,10 +578,16 @@ abstract class MysqlClusterBase
// PDOStatement::rowCount() 返回上一个由对应的 PDOStatement 对象执行DELETE、 INSERT、或 UPDATE 语句受影响的行数。
return
self
::
$sqlResut
->
rowCount
();
}
// 单条插入返回最后插入行的ID
// 对于无AUTO_INCREMENT的表,可以指定返回影响的行数的参数
if
(
isset
(
$arguments
[
2
][
'rowCount'
])
&&
$arguments
[
2
][
'rowCount'
])
{
// PDOStatement::rowCount() 返回上一个由对应的 PDOStatement 对象执行DELETE、 INSERT、或 UPDATE 语句受影响的行数。
return
self
::
$sqlResut
->
rowCount
();
}
// 单条默认插入返回最后插入行的lastInsertId,如果无AUTO_INCREMENT字段,返回NULL
return
call_user_func_array
([
self
::
$dbCurrentConnect
,
'id'
],
[]);
break
;
case
'update'
:
case
'delete'
:
// 返回上一个由对应的 PDOStatement 对象执行DELETE、 INSERT、或 UPDATE 语句受影响的行数。
...
...
vendor/api/php_utils/src/Mysql/README.md
View file @
ff689edf
...
...
@@ -4,6 +4,26 @@
### MysqlBase 主从模式示例
```
php
$options参数可选项
:
-
$options
[
'max_execution_time'
]
=
10
;
// 单位毫秒
-
$options
[
'rowCount'
]
=
true
;
// 返回insert后的影响行数
/**
* insertDuplicate
*
* 批量使用:Medoo::raw
* insertDuplicate([['id' => 4,'name' => 'test1'], ['id' => 5,'name' => 'test2']], ['name' => Medoo::raw('VALUES(name)')]);
*
* @return int 单条时返回1insert成功,返回2表示重复数据更新成功
*/
public
static
function
insertDuplicate
(
$data
,
$duplicate
)
{}
<?
php
namespace
App\Models\demo\mysql
;
...
...
vendor/api/php_utils/src/Protobuf/WebsiteLog/WebLog.php
View file @
ff689edf
...
...
@@ -160,9 +160,7 @@ class WebLog
$log
[
'request'
]
=
$send_request
;
}
$log
[
'response'
][
'status'
]
=
$result
[
'status'
]
??
''
;
$log
[
'response'
][
'code'
]
=
$result
[
'code'
]
??
''
;
$log
[
'response'
][
'reason'
]
=
$result
[
'reason'
]
??
''
;
$log
[
'response'
]
=
$result
;
if
(
!
empty
(
$GLOBALS
[
'related_url'
])
)
{
...
...
@@ -175,7 +173,7 @@ class WebLog
if
(
!
empty
(
$data
))
{
$bp_website_pb_log_url
=
self
::
BP_WEBSITE_PB_LOG_URL
;
$res
=
(
new
Request
())
->
post
(
$bp_website_pb_log_url
,
$data
,
50
,
[
'Content-Type: binary/octet-stream'
],
[],
1
);
$res
=
(
new
Request
())
->
CURL_POST
(
$bp_website_pb_log_url
,
$data
,
50
,
1
,
array
(
'Content-Type: binary/octet-stream'
)
);
}
}
...
...
vendor/composer/InstalledVersions.php
View file @
ff689edf
...
...
@@ -32,7 +32,7 @@ private static $installed = array (
'aliases'
=>
array
(
),
'reference'
=>
'
84928268a3b67ce3c8f83c4e655aa5d05654c37b
'
,
'reference'
=>
'
aaa7a15562bb4388a4d9b639c7623edd5f44e2d7
'
,
'name'
=>
'yidian/yaf_demo'
,
),
'versions'
=>
...
...
@@ -45,7 +45,7 @@ private static $installed = array (
array
(
0
=>
'9999999-dev'
,
),
'reference'
=>
'
95cfa288e4777d976f53787882e5c4ae9e7592e6
'
,
'reference'
=>
'
efdbb7f13f8184d60b56b0fb876b8868147162ac
'
,
),
'api/php_utils'
=>
array
(
...
...
@@ -55,7 +55,7 @@ private static $installed = array (
array
(
0
=>
'9999999-dev'
,
),
'reference'
=>
'
65546514336724128e7047b4a7704608f0400e80
'
,
'reference'
=>
'
474c015979f967bcd045224c7e4f47c206dcfad7
'
,
),
'elasticsearch/elasticsearch'
=>
array
(
...
...
@@ -184,7 +184,7 @@ private static $installed = array (
'aliases'
=>
array
(
),
'reference'
=>
'
84928268a3b67ce3c8f83c4e655aa5d05654c37b
'
,
'reference'
=>
'
aaa7a15562bb4388a4d9b639c7623edd5f44e2d7
'
,
),
),
);
...
...
vendor/composer/autoload_classmap.php
View file @
ff689edf
...
...
@@ -16,6 +16,7 @@ return array(
'Api\\PhpServices\\Daemon\\DaemonServiceInterface'
=>
$vendorDir
.
'/api/php_services/src/Daemon/DaemonServiceInterface.php'
,
'Api\\PhpServices\\Doc\\DocDynamic'
=>
$vendorDir
.
'/api/php_services/src/Doc/DocDynamic.php'
,
'Api\\PhpServices\\Idgen\\Idgen'
=>
$vendorDir
.
'/api/php_services/src/Idgen/Idgen.php'
,
'Api\\PhpServices\\Interaction\\InterDynamic'
=>
$vendorDir
.
'/api/php_services/src/Interaction/InterDynamic.php'
,
'Api\\PhpServices\\JwUser\\JwUser'
=>
$vendorDir
.
'/api/php_services/src/JwUser/JwUser.php'
,
'Api\\PhpServices\\Ksy\\Ksyun'
=>
$vendorDir
.
'/api/php_services/src/Ksy/Ksyun.php'
,
'Api\\PhpServices\\LifeAccount\\Account'
=>
$vendorDir
.
'/api/php_services/src/LifeAccount/Account.php'
,
...
...
@@ -73,11 +74,13 @@ return array(
'App\\Exception\\custom\\CodeSpecialException'
=>
$baseDir
.
'/application/exception/custom/CodeSpecialException.php'
,
'App\\Exception\\custom\\GoodsException'
=>
$baseDir
.
'/application/exception/custom/GoodsException.php'
,
'App\\Exception\\custom\\ParamException'
=>
$baseDir
.
'/application/exception/custom/ParamException.php'
,
'App\\Exception\\custom\\ShopException'
=>
$baseDir
.
'/application/exception/custom/ShopException.php'
,
'App\\Exception\\custom\\SignException'
=>
$baseDir
.
'/application/exception/custom/SignException.php'
,
'App\\Exception\\custom\\TestException'
=>
$baseDir
.
'/application/exception/custom/TestException.php'
,
'App\\Models\\demo\\mongo\\Test'
=>
$baseDir
.
'/application/models/demo/mongo/Test.php'
,
'App\\Models\\demo\\mongo\\User'
=>
$baseDir
.
'/application/models/demo/mongo/User.php'
,
'App\\Models\\demo\\mysql\\User'
=>
$baseDir
.
'/application/models/demo/mysql/User.php'
,
'App\\Models\\distribution\\mysql\\Distribution'
=>
$baseDir
.
'/application/models/distribution/mysql/Distribution.php'
,
'App\\Models\\goods\\mysql\\Category'
=>
$baseDir
.
'/application/models/goods/mysql/Category.php'
,
'App\\Models\\goods\\mysql\\GoodsOperationRecord'
=>
$baseDir
.
'/application/models/goods/mysql/GoodsOperationRecord.php'
,
'App\\Models\\goods\\mysql\\GoodsSku'
=>
$baseDir
.
'/application/models/goods/mysql/GoodsSku.php'
,
...
...
@@ -92,9 +95,11 @@ return array(
'App\\Services\\demo\\ElasticService'
=>
$baseDir
.
'/application/services/demo/ElasticService.php'
,
'App\\Services\\demo\\MongoService'
=>
$baseDir
.
'/application/services/demo/MongoService.php'
,
'App\\Services\\demo\\MysqlService'
=>
$baseDir
.
'/application/services/demo/MysqlService.php'
,
'App\\Services\\distribution\\DistributionService'
=>
$baseDir
.
'/application/services/distribution/DistributionService.php'
,
'App\\Services\\goods\\CategoryService'
=>
$baseDir
.
'/application/services/goods/CategoryService.php'
,
'App\\Services\\goods\\Elastic
Service'
=>
$baseDir
.
'/application/services/goods/Elastic
Service.php'
,
'App\\Services\\goods\\Elastic
GoodService'
=>
$baseDir
.
'/application/services/goods/ElasticGood
Service.php'
,
'App\\Services\\goods\\GoodsService'
=>
$baseDir
.
'/application/services/goods/GoodsService.php'
,
'App\\Services\\shop\\ShopService'
=>
$baseDir
.
'/application/services/shop/ShopService.php'
,
'Composer\\InstalledVersions'
=>
$vendorDir
.
'/composer/InstalledVersions.php'
,
'Daemon\\Test'
=>
$baseDir
.
'/daemon/Test.php'
,
'Elasticsearch\\Client'
=>
$vendorDir
.
'/elasticsearch/elasticsearch/src/Elasticsearch/Client.php'
,
...
...
vendor/composer/autoload_files.php
View file @
ff689edf
...
...
@@ -10,7 +10,7 @@ return array(
'ad155f8f1cf0d418fe49e248db8c661b'
=>
$vendorDir
.
'/react/promise/src/functions_include.php'
,
'c964ee0ededf28c96ebd9db5099ef910'
=>
$vendorDir
.
'/guzzlehttp/promises/src/functions_include.php'
,
'a0edc8309cc5e1d60e3047b5df6b7052'
=>
$vendorDir
.
'/guzzlehttp/psr7/src/functions_include.php'
,
'3a37ebac017bc098e9a86b35401e7a68'
=>
$vendorDir
.
'/mongodb/mongodb/src/functions.php'
,
'37a3dc5111fe8f707ab4c132ef1dbc62'
=>
$vendorDir
.
'/guzzlehttp/guzzle/src/functions_include.php'
,
'8592c7b0947d8a0965a9e8c3d16f9c24'
=>
$vendorDir
.
'/elasticsearch/elasticsearch/src/autoload.php'
,
'37a3dc5111fe8f707ab4c132ef1dbc62'
=>
$vendorDir
.
'/guzzlehttp/guzzle/src/functions_include.php'
,
'3a37ebac017bc098e9a86b35401e7a68'
=>
$vendorDir
.
'/mongodb/mongodb/src/functions.php'
,
);
vendor/composer/autoload_static.php
View file @
ff689edf
...
...
@@ -11,9 +11,9 @@ class ComposerStaticInit48fd9e88279ffd9162a19bdedd5d5a0a
'ad155f8f1cf0d418fe49e248db8c661b'
=>
__DIR__
.
'/..'
.
'/react/promise/src/functions_include.php'
,
'c964ee0ededf28c96ebd9db5099ef910'
=>
__DIR__
.
'/..'
.
'/guzzlehttp/promises/src/functions_include.php'
,
'a0edc8309cc5e1d60e3047b5df6b7052'
=>
__DIR__
.
'/..'
.
'/guzzlehttp/psr7/src/functions_include.php'
,
'3a37ebac017bc098e9a86b35401e7a68'
=>
__DIR__
.
'/..'
.
'/mongodb/mongodb/src/functions.php'
,
'37a3dc5111fe8f707ab4c132ef1dbc62'
=>
__DIR__
.
'/..'
.
'/guzzlehttp/guzzle/src/functions_include.php'
,
'8592c7b0947d8a0965a9e8c3d16f9c24'
=>
__DIR__
.
'/..'
.
'/elasticsearch/elasticsearch/src/autoload.php'
,
'37a3dc5111fe8f707ab4c132ef1dbc62'
=>
__DIR__
.
'/..'
.
'/guzzlehttp/guzzle/src/functions_include.php'
,
'3a37ebac017bc098e9a86b35401e7a68'
=>
__DIR__
.
'/..'
.
'/mongodb/mongodb/src/functions.php'
,
);
public
static
$prefixLengthsPsr4
=
array
(
...
...
@@ -152,6 +152,7 @@ class ComposerStaticInit48fd9e88279ffd9162a19bdedd5d5a0a
'Api\\PhpServices\\Daemon\\DaemonServiceInterface'
=>
__DIR__
.
'/..'
.
'/api/php_services/src/Daemon/DaemonServiceInterface.php'
,
'Api\\PhpServices\\Doc\\DocDynamic'
=>
__DIR__
.
'/..'
.
'/api/php_services/src/Doc/DocDynamic.php'
,
'Api\\PhpServices\\Idgen\\Idgen'
=>
__DIR__
.
'/..'
.
'/api/php_services/src/Idgen/Idgen.php'
,
'Api\\PhpServices\\Interaction\\InterDynamic'
=>
__DIR__
.
'/..'
.
'/api/php_services/src/Interaction/InterDynamic.php'
,
'Api\\PhpServices\\JwUser\\JwUser'
=>
__DIR__
.
'/..'
.
'/api/php_services/src/JwUser/JwUser.php'
,
'Api\\PhpServices\\Ksy\\Ksyun'
=>
__DIR__
.
'/..'
.
'/api/php_services/src/Ksy/Ksyun.php'
,
'Api\\PhpServices\\LifeAccount\\Account'
=>
__DIR__
.
'/..'
.
'/api/php_services/src/LifeAccount/Account.php'
,
...
...
@@ -209,11 +210,13 @@ class ComposerStaticInit48fd9e88279ffd9162a19bdedd5d5a0a
'App\\Exception\\custom\\CodeSpecialException'
=>
__DIR__
.
'/../..'
.
'/application/exception/custom/CodeSpecialException.php'
,
'App\\Exception\\custom\\GoodsException'
=>
__DIR__
.
'/../..'
.
'/application/exception/custom/GoodsException.php'
,
'App\\Exception\\custom\\ParamException'
=>
__DIR__
.
'/../..'
.
'/application/exception/custom/ParamException.php'
,
'App\\Exception\\custom\\ShopException'
=>
__DIR__
.
'/../..'
.
'/application/exception/custom/ShopException.php'
,
'App\\Exception\\custom\\SignException'
=>
__DIR__
.
'/../..'
.
'/application/exception/custom/SignException.php'
,
'App\\Exception\\custom\\TestException'
=>
__DIR__
.
'/../..'
.
'/application/exception/custom/TestException.php'
,
'App\\Models\\demo\\mongo\\Test'
=>
__DIR__
.
'/../..'
.
'/application/models/demo/mongo/Test.php'
,
'App\\Models\\demo\\mongo\\User'
=>
__DIR__
.
'/../..'
.
'/application/models/demo/mongo/User.php'
,
'App\\Models\\demo\\mysql\\User'
=>
__DIR__
.
'/../..'
.
'/application/models/demo/mysql/User.php'
,
'App\\Models\\distribution\\mysql\\Distribution'
=>
__DIR__
.
'/../..'
.
'/application/models/distribution/mysql/Distribution.php'
,
'App\\Models\\goods\\mysql\\Category'
=>
__DIR__
.
'/../..'
.
'/application/models/goods/mysql/Category.php'
,
'App\\Models\\goods\\mysql\\GoodsOperationRecord'
=>
__DIR__
.
'/../..'
.
'/application/models/goods/mysql/GoodsOperationRecord.php'
,
'App\\Models\\goods\\mysql\\GoodsSku'
=>
__DIR__
.
'/../..'
.
'/application/models/goods/mysql/GoodsSku.php'
,
...
...
@@ -228,9 +231,11 @@ class ComposerStaticInit48fd9e88279ffd9162a19bdedd5d5a0a
'App\\Services\\demo\\ElasticService'
=>
__DIR__
.
'/../..'
.
'/application/services/demo/ElasticService.php'
,
'App\\Services\\demo\\MongoService'
=>
__DIR__
.
'/../..'
.
'/application/services/demo/MongoService.php'
,
'App\\Services\\demo\\MysqlService'
=>
__DIR__
.
'/../..'
.
'/application/services/demo/MysqlService.php'
,
'App\\Services\\distribution\\DistributionService'
=>
__DIR__
.
'/../..'
.
'/application/services/distribution/DistributionService.php'
,
'App\\Services\\goods\\CategoryService'
=>
__DIR__
.
'/../..'
.
'/application/services/goods/CategoryService.php'
,
'App\\Services\\goods\\Elastic
Service'
=>
__DIR__
.
'/../..'
.
'/application/services/goods/Elastic
Service.php'
,
'App\\Services\\goods\\Elastic
GoodService'
=>
__DIR__
.
'/../..'
.
'/application/services/goods/ElasticGood
Service.php'
,
'App\\Services\\goods\\GoodsService'
=>
__DIR__
.
'/../..'
.
'/application/services/goods/GoodsService.php'
,
'App\\Services\\shop\\ShopService'
=>
__DIR__
.
'/../..'
.
'/application/services/shop/ShopService.php'
,
'Composer\\InstalledVersions'
=>
__DIR__
.
'/..'
.
'/composer/InstalledVersions.php'
,
'Daemon\\Test'
=>
__DIR__
.
'/../..'
.
'/daemon/Test.php'
,
'Elasticsearch\\Client'
=>
__DIR__
.
'/..'
.
'/elasticsearch/elasticsearch/src/Elasticsearch/Client.php'
,
...
...
vendor/composer/installed.json
View file @
ff689edf
...
...
@@ -7,14 +7,14 @@
"source"
:
{
"type"
:
"git"
,
"url"
:
"https://git.yidian-inc.com:8021/bp/php_services.git"
,
"reference"
:
"
95cfa288e4777d976f53787882e5c4ae9e7592e6
"
"reference"
:
"
efdbb7f13f8184d60b56b0fb876b8868147162ac
"
},
"require"
:
{
"api/php_utils"
:
"dev-master"
,
"perftools/php-profiler"
:
"^0.18.0"
,
"php"
:
">=7.2"
},
"time"
:
"2021-06-1
6T11:04:11
+00:00"
,
"time"
:
"2021-06-1
7T09:28:47
+00:00"
,
"default-branch"
:
true
,
"type"
:
"library"
,
"installation-source"
:
"source"
,
...
...
@@ -33,7 +33,7 @@
"source"
:
{
"type"
:
"git"
,
"url"
:
"https://git.yidian-inc.com:8021/bp/php_utils.git"
,
"reference"
:
"
65546514336724128e7047b4a7704608f0400e80
"
"reference"
:
"
474c015979f967bcd045224c7e4f47c206dcfad7
"
},
"require"
:
{
"elasticsearch/elasticsearch"
:
"~7.0"
,
...
...
@@ -45,7 +45,7 @@
"mongodb/mongodb"
:
"1.4.3"
,
"php"
:
">=7.2"
},
"time"
:
"2021-06-1
6T11:07:2
8+00:00"
,
"time"
:
"2021-06-1
7T12:06:1
8+00:00"
,
"default-branch"
:
true
,
"type"
:
"library"
,
"installation-source"
:
"source"
,
...
...
vendor/composer/installed.php
View file @
ff689edf
...
...
@@ -6,7 +6,7 @@
'aliases'
=>
array
(
),
'reference'
=>
'
84928268a3b67ce3c8f83c4e655aa5d05654c37b
'
,
'reference'
=>
'
aaa7a15562bb4388a4d9b639c7623edd5f44e2d7
'
,
'name'
=>
'yidian/yaf_demo'
,
),
'versions'
=>
...
...
@@ -19,7 +19,7 @@
array
(
0
=>
'9999999-dev'
,
),
'reference'
=>
'
95cfa288e4777d976f53787882e5c4ae9e7592e6
'
,
'reference'
=>
'
efdbb7f13f8184d60b56b0fb876b8868147162ac
'
,
),
'api/php_utils'
=>
array
(
...
...
@@ -29,7 +29,7 @@
array
(
0
=>
'9999999-dev'
,
),
'reference'
=>
'
65546514336724128e7047b4a7704608f0400e80
'
,
'reference'
=>
'
474c015979f967bcd045224c7e4f47c206dcfad7
'
,
),
'elasticsearch/elasticsearch'
=>
array
(
...
...
@@ -158,7 +158,7 @@
'aliases'
=>
array
(
),
'reference'
=>
'
84928268a3b67ce3c8f83c4e655aa5d05654c37b
'
,
'reference'
=>
'
aaa7a15562bb4388a4d9b639c7623edd5f44e2d7
'
,
),
),
);
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