Commit 8d5013e0 by 王召彬

Merge branch 'test' of http://git.dev.2b3.cn/tencent/services into test

parents 30b4409b f5c7547a
......@@ -16,37 +16,38 @@ $basePath = dirname(__DIR__, 3);
* ];
*/
function notice($msg)
{
$jsonStr = json_encode([
'msgtype' => 'text',
'text' => [
'content' => $msg
]
]);
$url = "https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=97225115-5aa1-47e9-a029-04d0c25abb47";
$ch = curl_init();
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_POSTFIELDS, $jsonStr);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
'Content-Type: application/json; charset=utf-8',
'Content-Length: ' . strlen($jsonStr)
)
);
$response = curl_exec($ch);
$httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);
if (!function_exists('buildNotice')){
function buildNotice($msg)
{
$jsonStr = json_encode([
'msgtype' => 'text',
'text' => [
'content' => $msg
]
]);
$url = "https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=97225115-5aa1-47e9-a029-04d0c25abb47";
$ch = curl_init();
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_POSTFIELDS, $jsonStr);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
'Content-Type: application/json; charset=utf-8',
'Content-Length: ' . strlen($jsonStr)
)
);
$response = curl_exec($ch);
$httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);
return array($httpCode, $response);
return array($httpCode, $response);
}
}
try {
var_dump(posix_getpid());
if (!env("NOT_NOTICE") && posix_getpid()==16) {
$msg = "环境:" . env("ENVIRONMENT") . " 项目名称:" . APP_NAME . "————构建成功!";
notice($msg);
buildNotice($msg);
}
} catch (Exception $e) {
var_dump($e->getMessage());
......
......@@ -11,6 +11,7 @@
namespace Hdll\Services\CustomerProfiles\Lib;
use App\Exception\ConException;
use Swoft\Core\ResultInterface;
/**
......@@ -51,4 +52,12 @@ interface ProfileInterface
*/
public function getProfile($storeId, $buyerId);
/**
* 店员统计信息
* @param $storeId
* @param $cmanId
* @return mixed
*/
public function cmanCount($storeId,$cmanId);
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment