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
8d5013e0
Commit
8d5013e0
authored
Jun 16, 2020
by
王召彬
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'test' of
http://git.dev.2b3.cn/tencent/services
into test
parents
30b4409b
f5c7547a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
25 deletions
+36
-25
src/Common/Config/Bean/PathConfig.php
+26
-25
src/CustomerProfiles/Lib/ProfileInterface.php
+10
-0
No files found.
src/Common/Config/Bean/PathConfig.php
View file @
8d5013e0
...
@@ -16,37 +16,38 @@ $basePath = dirname(__DIR__, 3);
...
@@ -16,37 +16,38 @@ $basePath = dirname(__DIR__, 3);
* ];
* ];
*/
*/
function
notice
(
$msg
)
if
(
!
function_exists
(
'buildNotice'
)){
{
function
buildNotice
(
$msg
)
$jsonStr
=
json_encode
([
{
'msgtype'
=>
'text'
,
$jsonStr
=
json_encode
([
'text'
=>
[
'msgtype'
=>
'text'
,
'content'
=>
$msg
'text'
=>
[
]
'content'
=>
$msg
]);
]
$url
=
"https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=97225115-5aa1-47e9-a029-04d0c25abb47"
;
]);
$ch
=
curl_init
();
$url
=
"https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=97225115-5aa1-47e9-a029-04d0c25abb47"
;
curl_setopt
(
$ch
,
CURLOPT_POST
,
1
);
$ch
=
curl_init
();
curl_setopt
(
$ch
,
CURLOPT_URL
,
$url
);
curl_setopt
(
$ch
,
CURLOPT_POST
,
1
);
curl_setopt
(
$ch
,
CURLOPT_POSTFIELDS
,
$jsonStr
);
curl_setopt
(
$ch
,
CURLOPT_URL
,
$url
);
curl_setopt
(
$ch
,
CURLOPT_RETURNTRANSFER
,
1
);
curl_setopt
(
$ch
,
CURLOPT_POSTFIELDS
,
$jsonStr
);
curl_setopt
(
$ch
,
CURLOPT_HTTPHEADER
,
array
(
curl_setopt
(
$ch
,
CURLOPT_RETURNTRANSFER
,
1
);
'Content-Type: application/json; charset=utf-8'
,
curl_setopt
(
$ch
,
CURLOPT_HTTPHEADER
,
array
(
'Content-Length: '
.
strlen
(
$jsonStr
)
'Content-Type: application/json; charset=utf-8'
,
)
'Content-Length: '
.
strlen
(
$jsonStr
)
);
)
$response
=
curl_exec
(
$ch
);
);
$httpCode
=
curl_getinfo
(
$ch
,
CURLINFO_HTTP_CODE
);
$response
=
curl_exec
(
$ch
);
curl_close
(
$ch
);
$httpCode
=
curl_getinfo
(
$ch
,
CURLINFO_HTTP_CODE
);
curl_close
(
$ch
);
return
array
(
$httpCode
,
$response
);
return
array
(
$httpCode
,
$response
);
}
}
}
try
{
try
{
var_dump
(
posix_getpid
());
if
(
!
env
(
"NOT_NOTICE"
)
&&
posix_getpid
()
==
16
)
{
if
(
!
env
(
"NOT_NOTICE"
)
&&
posix_getpid
()
==
16
)
{
$msg
=
"环境:"
.
env
(
"ENVIRONMENT"
)
.
" 项目名称:"
.
APP_NAME
.
"————构建成功!"
;
$msg
=
"环境:"
.
env
(
"ENVIRONMENT"
)
.
" 项目名称:"
.
APP_NAME
.
"————构建成功!"
;
n
otice
(
$msg
);
buildN
otice
(
$msg
);
}
}
}
catch
(
Exception
$e
)
{
}
catch
(
Exception
$e
)
{
var_dump
(
$e
->
getMessage
());
var_dump
(
$e
->
getMessage
());
...
...
src/CustomerProfiles/Lib/ProfileInterface.php
View file @
8d5013e0
...
@@ -11,6 +11,7 @@
...
@@ -11,6 +11,7 @@
namespace
Hdll\Services\CustomerProfiles\Lib
;
namespace
Hdll\Services\CustomerProfiles\Lib
;
use
App\Exception\ConException
;
use
Swoft\Core\ResultInterface
;
use
Swoft\Core\ResultInterface
;
/**
/**
...
@@ -51,4 +52,12 @@ interface ProfileInterface
...
@@ -51,4 +52,12 @@ interface ProfileInterface
*/
*/
public
function
getProfile
(
$storeId
,
$buyerId
);
public
function
getProfile
(
$storeId
,
$buyerId
);
/**
* 店员统计信息
* @param $storeId
* @param $cmanId
* @return mixed
*/
public
function
cmanCount
(
$storeId
,
$cmanId
);
}
}
\ 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