Commit 9c12956e authored by jianghaiming's avatar jianghaiming

update:set

parent 0d55d1b9
...@@ -20,5 +20,7 @@ class ShopException extends BaseException ...@@ -20,5 +20,7 @@ class ShopException extends BaseException
6 => '门店名称已存在', 6 => '门店名称已存在',
7 => '手机号已存在', 7 => '手机号已存在',
8 => '门店名称不能大于20个字', 8 => '门店名称不能大于20个字',
9 => '门店id不能为空',
10 => '门店修改失败',
]; ];
} }
\ No newline at end of file
...@@ -145,7 +145,12 @@ class ShopService ...@@ -145,7 +145,12 @@ class ShopService
$latitude = !empty($params['latitude']) ? $params['latitude'] : ''; $latitude = !empty($params['latitude']) ? $params['latitude'] : '';
$address = !empty($params['address']) ? $params['address'] : ''; $address = !empty($params['address']) ? $params['address'] : '';
$phone = !empty($params['phone']) ? $params['phone'] : ''; $phone = !empty($params['phone']) ? $params['phone'] : '';
$subShopId = !empty($params['sub_shop_id']) ? $params['sub_shop_id'] : '';
if (empty($subShopId)) {
throw new ShopException(['cus' => 9]);
}
$colums = [];
if (!empty($name)) { if (!empty($name)) {
$detectParams = [ $detectParams = [
'businessId' => 1, 'businessId' => 1,
...@@ -156,7 +161,7 @@ class ShopService ...@@ -156,7 +161,7 @@ class ShopService
if (!empty($sensitive['data'])) { if (!empty($sensitive['data'])) {
throw new ShopException(['cus' => 4]); throw new ShopException(['cus' => 4]);
} }
$colums['name'] = $name; $colums['shop_name'] = $name;
} }
$subShopInfo = SubShop::getRecord(['shop_name' => $name]); $subShopInfo = SubShop::getRecord(['shop_name' => $name]);
...@@ -182,8 +187,10 @@ class ShopService ...@@ -182,8 +187,10 @@ class ShopService
if (!empty($phone)) { if (!empty($phone)) {
$colums['phone'] = $phone; $colums['phone'] = $phone;
} }
$subShop = SubShop::updateRecord($colums, $where); $subShop = SubShop::updateRecord($colums, $where);
if (empty($subShop)) {
throw new ShopException(['cus' => 6]);
}
return $subShop; return $subShop;
} }
......
<?php
namespace Api\PhpServices\PG;
class GetImage
{
public static function getCoupon(){
//创建画布
$im = imagecreatetruecolor(500, 600);
$qr = new QR('abc');
$qr_img = $qr->get();
list($code_w,$code_h) = getimagesizefromstring($qr_img);
$codeImg = imagecreatefromstring($qr_img);
imagecopyresized($im, $codeImg, 0, 0, 0, 0, 170, 170, $code_w, $code_h);
Header("Content-Type: image/png");
imagepng ($im);
imagedestroy($im);
}
public static function getLeaderShare(){
}
public static function getGoods(){
}
}
\ No newline at end of file
<?php
namespace Api\PhpServices\ShopImage;
use Endroid\QrCode\ErrorCorrectionLevel;
use Endroid\QrCode\QrCode;
class GetImage
{
private $font_b = __DIR__.'/fonts/OPPOSans-B.ttf';
private $font_m = __DIR__.'/fonts/OPPOSans-M.ttf';
private $font_l = __DIR__.'/fonts/OPPOSans-L.ttf';
private $font_r = __DIR__.'/fonts/OPPOSans-R.ttf';
private $font_h = __DIR__.'/fonts/OPPOSans-H.ttf';
/**
* @param string $shop_name 店铺名
* @param string $goods_name 券名
* @param float $goods_price 券价格
* @param string $addr 商家地址
* @param string $goods_desc 商品描述说明
*/
public function getCoupon(string $shop_name, string $goods_name, float $goods_price, string $addr, string $goods_desc=""){
//创建画布
$bg = __DIR__.'/images/1_bg.png';
list($bg_w,$bg_h) = getimagesize($bg);
$im = imagecreatetruecolor($bg_w, $bg_h);
$bg_im = imagecreatefrompng($bg);
$col = imagecolorallocatealpha($im, 255,255,255,127);
imagefill($im, 0, 0, $col);
imagecopyresized($im, $bg_im, 0, 0, 0, 0, $bg_w, $bg_h, $bg_w, $bg_h);
// 店名
imagettftext($im, 27,0, 60, 90, 333333 ,$this->font_m, $this->textLength($shop_name,9, true));
// 券名
$color = ImageColorAllocate ($im, 255, 255, 255);
$line_1 = mb_substr($goods_name,0,14);
imagettftext($im, 27,0, 300, 210, $color ,$this->font_m, $line_1);
if(mb_strlen($goods_name)>14){
if(mb_strlen($goods_name)>22){
$line_2 = mb_substr($goods_name,14,8)."...";
}else{
$line_2 = mb_substr($goods_name,14);
}
imagettftext($im, 27,0, 300, 260, $color ,$this->font_m, $line_2);
}
// 价格
$color = ImageColorAllocate ($im, 51, 51, 51);
imagettftext($im, 22,0, 678, 260, $color ,$this->font_m, "¥".$goods_price);
// 备注
if(strlen($goods_desc)){
$line_height = 60;
$res = $this->getTextByLine($goods_desc, 23, 3);
if(isset($res[0])){
$color = ImageColorAllocate ($im, 239,115,64);
imagettftext($im, 27,0, 60, 382, $color ,$this->font_m, $res[0]);
}
if(isset($res[1])){
$color = ImageColorAllocate ($im, 239,115,64);
imagettftext($im, 27,0, 60, 382+$line_height, $color ,$this->font_m, $res[1]);
}
if(isset($res[2])){
$color = ImageColorAllocate ($im, 239,115,64);
imagettftext($im, 27,0, 60, 382+2*$line_height, $color ,$this->font_m, $res[2]);
}
}
// 位置
imagettftext($im, 24,0, 96, 636, 333333 ,$this->font_m, $this->textLength($addr,19));
Header("Content-Type: image/png");
imagepng ($im);
imagedestroy($im);
}
/**
* @param string $code 二维码扫描后内容
*/
public function getLeaderShare(string $code){
$bg = __DIR__.'/images/2-bg.png';
list($bg_w,$bg_h) = getimagesize($bg);
$im = imagecreatetruecolor($bg_w, $bg_h);
$bg_im = imagecreatefrompng($bg);
imagecopyresized($im, $bg_im, 0, 0, 0, 0, $bg_w, $bg_h, $bg_w, $bg_h);
$logo = __DIR__.'/images/2-logo.png';
$qr = new QR($code);
$qr->setLogoUrl($logo);
$qr_string = $qr->get();
$qr_img = imagecreatefromstring($qr_string);
list($qr_w,$qr_h) = getimagesizefromstring($qr_string);
imagecopyresized($im, $qr_img, 155, 345, 0, 0, 230, 230, $qr_w, $qr_h);
Header("Content-Type: image/png");
imagepng ($im);
imagedestroy($im);
imagedestroy($bg_im);
imagedestroy($qr_img);
}
/**
* @param string $head_img 头像url地址
* @param string $goods_img 商品图片url地址
* @param string $nickname 用户昵称
* @param string $goods_name 商品名
* @param string $qr_string 二维码扫描后的内容
* @param float $price 价格
* @param float|int $old_price 优惠前的价格
* @param int $buy_count 购买数
* @return bool
*/
public function getGoods(string $head_img, string $goods_img, string $nickname, string $goods_name, string $qr_string, float $price, float $old_price = 0, int $buy_count=0){
// 画底图
$bg = __DIR__.'/images/3-bg.png';
list($bg_w,$bg_h) = getimagesize($bg);
$im = imagecreatetruecolor($bg_w, $bg_h);
$col = imagecolorallocatealpha($im, 255,255,255,127);
imagefill($im, 0, 0, $col);
$bg_im = imagecreatefrompng($bg);
imagecopyresized($im, $bg_im, 0, 0, 0, 0, $bg_w, $bg_h, $bg_w, $bg_h);
// 头像
$head_path = $this->curlImage($head_img, '../data/tmp/',"PG_".time().$this->genUniqId());
if(!$head_path){
return false;
}
list($head_w,$head_h) = getimagesize($head_path);
$head_im_old = imagecreatefromstring(file_get_contents($head_path));
$head_size = 108;
$head_im = $this->changeImSize($head_im_old, $head_w,$head_h,$head_size,$head_size);
imagecopyresized($im, $head_im, 57, 39, 0, 0, $head_size, $head_size,$head_size, $head_size);
// 用户名+向你推荐
imagettftext($im, 19,0, 183, 82, 333333 ,$this->font_m, $this->substrName($nickname)."向你推荐");
imagettftext($im, 16,0, 183, 119, 666666 ,$this->font_m, "这个宝贝值得买,物美价廉,倾心推荐~");
// 用户推荐
$tuijian_path = __DIR__.'/images/3_tag.png';
list($tuijian_w,$tuijian_h) = getimagesize($tuijian_path);
$tuijian_img = imagecreatefrompng($tuijian_path);
imagecopyresized($im, $tuijian_img, 362, 54, 0, 0, $tuijian_w, $tuijian_h, $tuijian_w, $tuijian_h);
// 商品图
$goods_path = $this->curlImage($goods_img, '../data/tmp/',"PG_".time().$this->genUniqId());
if(!$goods_path){
return false;
}
list($goods_w,$goods_h) = getimagesize($goods_path);
$goods_im_old = imagecreatefromstring(file_get_contents($goods_path));
$goods_size = 717;
$goods_im = $this->changeImSize($goods_im_old, $goods_w,$goods_h,$goods_size,$goods_size);
imagecopyresized($im, $goods_im, 47, 173, 0, 0, $goods_size, $goods_size,$goods_size, $goods_size);
// 底部二维码
$qr = new QR($qr_string);
$qr_size = 121;
$qr->setSize($qr_size);
$qr->setRoundBlockSize(QrCode::ROUND_BLOCK_SIZE_MODE_MARGIN);
$qr_string = $qr->get();
$qr_img = imagecreatefromstring($qr_string);
list($qr_w,$qr_h) = getimagesizefromstring($qr_string);
imagecopyresized($im, $qr_img, 49, 1102, 0, 0, $qr_size, $qr_size, $qr_size, $qr_size);
// 底部文字
imagettftext($im, 21,0, 195, 1160, 333333 ,$this->font_m, "长按扫码快速抢券");
imagettftext($im, 16,0, 195, 1200, 666666 ,$this->font_r, "分享自 生活圈APP");
// 底部logo
$logo_path = __DIR__.'/images/3_logo.png';
list($logo_w,$logo_h) = getimagesize($logo_path);
$logo_im = imagecreatefrompng($logo_path);
imagecopyresized($im, $logo_im, 662, 1097, 0, 0, $logo_w, $logo_h, $logo_w, $logo_h);
// 价格
$color = ImageColorAllocate ($im, 255, 62, 62);
imagettftext($im, 25,0, 48, 957, $color ,$this->font_b, "¥".$price);
// 老价格
if($old_price){
$color = ImageColorAllocate ($im, 187, 187, 187);
imagettftext($im, 13,0, 173, 957, $color ,$this->font_h, "¥".$price);
$del_path = __DIR__.'/images/3_del.png';
list($del_w,$del_h) = getimagesize($del_path);
$del_im = imagecreatefrompng($del_path);
imagecopyresized($im, $del_im, 178, 949, 0, 0,$del_w,$del_h,$del_w,$del_h);
}
// 商品名
$goods_name = $this->textLength($goods_name, 20);
imagettftext($im, 25,0, 48, 1018, 333333 ,$this->font_m, $goods_name);
// 购买人数
if($buy_count){
if($buy_count/1>10000){
$buy_count_string = number_format($buy_count/10000,1) ."万人已关注";
}else{
$buy_count_string = $buy_count."人已关注";
}
$user_path = __DIR__.'/images/3_user_count.png';
list($user_w,$user_h) = getimagesize($user_path);
$user_im = imagecreatefrompng($user_path);
$color = ImageColorAllocate ($im, 255, 62, 62);
imagettftext($user_im, 17,0, 18, 30, $color ,$this->font_r, $buy_count_string);
imagecopyresized($im, $user_im, 270, 924, 0, 0, $user_w,$user_h, $user_w,$user_h);
}
Header("Content-Type: image/png");
imagepng ($im);
unlink($head_path);
unlink($goods_path);
imagedestroy($im);
imagedestroy($bg_im);
imagedestroy($head_im_old);
imagedestroy($head_im);
imagedestroy($goods_im_old);
imagedestroy($goods_im);
imagedestroy($tuijian_img);
imagedestroy($qr_img);
imagedestroy($logo_im);
imagedestroy($del_im);
imagedestroy($user_im);
}
private function changeImSize($old_im, $old_width, $old_height, $new_width, $new_height){
$image_thump = imagecreatetruecolor ( $new_width, $new_height );
imagecopyresampled ( $image_thump, $old_im, 0, 0, 0, 0, $new_width, $new_height, $old_width, $old_height );
return $image_thump;
}
private function curlImage($url, $save_dir='',$filename='',$type=0){
if(trim($url)==''){
return array('file_name'=>'','save_path'=>'','error'=>1);
}
if(trim($save_dir)==''){
$save_dir='./';
}
$ext=strrchr($url,'.');
if(trim($filename)==''){//保存文件名
if($ext!='.gif'&&$ext!='.jpg'){
return array('file_name'=>'','save_path'=>'','error'=>3);
}
$filename=time().$ext;
}else{
$filename = $filename.$ext;
}
if(0!==strrpos($save_dir,'/')){
$save_dir.='/';
}
//创建保存目录
if(!file_exists($save_dir)&&!mkdir($save_dir,0777,true)){
return false;
}
//获取远程文件所采用的方法
if($type){
$ch=curl_init();
$timeout=5;
curl_setopt($ch,CURLOPT_URL,$url);
curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);
curl_setopt($ch,CURLOPT_CONNECTTIMEOUT,$timeout);
$img=curl_exec($ch);
curl_close($ch);
}else{
ob_start();
readfile($url);
$img=ob_get_contents();
ob_end_clean();
}
//$size=strlen($img);
//文件大小
$fp2=@fopen($save_dir.$filename,'a');
fwrite($fp2,$img);
fclose($fp2);
unset($img,$url);
return $save_dir.$filename;
}
private function genUniqId() {
if (function_exists("random_bytes")) {
$bytes = random_bytes(ceil(8));
return substr(bin2hex($bytes), 0, 16);
} elseif (function_exists("openssl_random_pseudo_bytes")) {
$bytes = openssl_random_pseudo_bytes(ceil(8));
return substr(bin2hex($bytes), 0, 16);
} else {
$pre = rand(1, 4095);
return uniqid(sprintf("%03x", $pre));
}
}
private function substrName($name){
if(strlen($name)>3){
return mb_substr($name,0,1)."*".mb_substr($name,-1,1);
}
return $name;
}
private function textLength($text, $length, $del=false){
if(mb_strlen($text) < $length){
return $text;
}
if($del){
return mb_substr($text, 0, $length-3)."...";
}
return mb_substr($text, 0, $length)."...";
}
private function getTextByLine($text, $len, $max_line){
$res = [];
$start = 0;
for ($i =0; $i<$max_line; $i++){
if($i+1 == $max_line){ // 最后一行
if($start+$len-1 > mb_strlen($text)){
$res[] = mb_substr($text, $start);
}else{
$res[] = mb_substr($text, $start, $len-4)."...";
}
break;
}
$res[] = mb_substr($text, $start, $len-1);
$start = ($len-1)*($i+1);
}
return $res;
}
}
<?php <?php
namespace Api\PhpServices\PG; namespace Api\PhpServices\ShopImage;
use Endroid\QrCode\ErrorCorrectionLevel;
use Endroid\QrCode\QrCode; use Endroid\QrCode\QrCode;
class QR class QR
...@@ -11,6 +12,14 @@ class QR ...@@ -11,6 +12,14 @@ class QR
private $_logo_url = ''; private $_logo_url = '';
private $_logo_size = 80; private $_logo_size = 80;
private $_writeFile = false; private $_writeFile = false;
private $_blockSize = QrCode::ROUND_BLOCK_SIZE_MODE_MARGIN;
// private $_errorCorrectionLevel;
public function setRoundBlockSize($_blockSize)
{
$this->_blockSize = $_blockSize;
}
public function setWriteFile(bool $writeFile): void public function setWriteFile(bool $writeFile): void
...@@ -46,6 +55,7 @@ class QR ...@@ -46,6 +55,7 @@ class QR
public function get(){ public function get(){
$qr = new QrCode($this->_content); $qr = new QrCode($this->_content);
$qr->setSize($this->_size); $qr->setSize($this->_size);
$qr->setRoundBlockSize(true, $this->_blockSize);
if(!empty($this->_logo_url)){ if(!empty($this->_logo_url)){
$qr->setLogoPath($this->_logo_url); $qr->setLogoPath($this->_logo_url);
......
...@@ -66,7 +66,7 @@ class MonUtil{ ...@@ -66,7 +66,7 @@ class MonUtil{
if (empty($module)) { if (empty($module)) {
//默认取url 中的域名作为module //默认取url 中的域名作为module
$domain = $_SERVER['SERVER_NAME'] ?? 'unknow_domain'; $domain = $_SERVER['SERVER_NAME'] ?? 'unknow_domain';
$module = $domain.($request_module ?? 'other_depent'); $module = $domain.'.'.($request_module ?? 'other_depent');
} }
//接口返回状态码打点 //接口返回状态码打点
...@@ -78,7 +78,7 @@ class MonUtil{ ...@@ -78,7 +78,7 @@ class MonUtil{
//接口请求响应总时间打点 //接口请求响应总时间打点
if(!empty($request_time) && is_numeric($request_time) && $request_time != -899){ if(!empty($request_time) && is_numeric($request_time) && $request_time != -899){
$result .= self::timing((string)$request_uri, "TotalTime", $request_time); $result .= self::timing($module.'.'.(string)$request_uri, "TotalTime", $request_time);
} }
} }
return $result; return $result;
...@@ -107,7 +107,12 @@ class MonUtil{ ...@@ -107,7 +107,12 @@ class MonUtil{
//耗时打点 //耗时打点
if(!empty($request_time) && is_numeric($request_time) && $request_time != -799){ if(!empty($request_time) && is_numeric($request_time) && $request_time != -799){
$result = self::timing(($db_name.'.'.$host.$operator), "TotalTime", $request_time,'s'); $type = 'ms';
if ($request_time < 1) {
$request_time *= 1000;
$type = 's';
}
$result = self::timing(($db_name.'.'.$host.'.'.$operator), "TotalTime", $request_time,$type);
} }
} }
......
...@@ -32,7 +32,7 @@ private static $installed = array ( ...@@ -32,7 +32,7 @@ private static $installed = array (
'aliases' => 'aliases' =>
array ( array (
), ),
'reference' => '48662ee0ac551270f90d09cda3f0a1ab5d45c556', 'reference' => '0d55d1b988fb0ef7b715037568463cf4b8fa5e88',
'name' => 'yidian/yaf_demo', 'name' => 'yidian/yaf_demo',
), ),
'versions' => 'versions' =>
...@@ -45,7 +45,7 @@ private static $installed = array ( ...@@ -45,7 +45,7 @@ private static $installed = array (
array ( array (
0 => '9999999-dev', 0 => '9999999-dev',
), ),
'reference' => '3a118172e1f4bb413ccbef92c037f4f3255b388a', 'reference' => 'd12158b756ba1aee7d019a8d25ca79f49bbe1d8c',
), ),
'api/php_utils' => 'api/php_utils' =>
array ( array (
...@@ -55,7 +55,7 @@ private static $installed = array ( ...@@ -55,7 +55,7 @@ private static $installed = array (
array ( array (
0 => '9999999-dev', 0 => '9999999-dev',
), ),
'reference' => '16949fb782de0488cf192e3cd9d4e1268377294d', 'reference' => 'a6fdc2ddaf55ca6f8f86a3295b7659a70c50b2ec',
), ),
'bacon/bacon-qr-code' => 'bacon/bacon-qr-code' =>
array ( array (
...@@ -326,7 +326,7 @@ private static $installed = array ( ...@@ -326,7 +326,7 @@ private static $installed = array (
'aliases' => 'aliases' =>
array ( array (
), ),
'reference' => '92855c727d7edabe004605f451ef0b274fa24490', 'reference' => 'c29a3e649843f4a34eaa4be2683f4914e8b7f023',
), ),
'yidian/yaf_demo' => 'yidian/yaf_demo' =>
array ( array (
...@@ -335,7 +335,7 @@ private static $installed = array ( ...@@ -335,7 +335,7 @@ private static $installed = array (
'aliases' => 'aliases' =>
array ( array (
), ),
'reference' => '48662ee0ac551270f90d09cda3f0a1ab5d45c556', 'reference' => '0d55d1b988fb0ef7b715037568463cf4b8fa5e88',
), ),
), ),
); );
......
...@@ -21,8 +21,6 @@ return array( ...@@ -21,8 +21,6 @@ return array(
'Api\\PhpServices\\Ksy\\Ksyun' => $vendorDir . '/api/php_services/src/Ksy/Ksyun.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', 'Api\\PhpServices\\LifeAccount\\Account' => $vendorDir . '/api/php_services/src/LifeAccount/Account.php',
'Api\\PhpServices\\Login\\Login' => $vendorDir . '/api/php_services/src/Login/Login.php', 'Api\\PhpServices\\Login\\Login' => $vendorDir . '/api/php_services/src/Login/Login.php',
'Api\\PhpServices\\PG\\GetImage' => $vendorDir . '/api/php_services/src/PG/GetImage.php',
'Api\\PhpServices\\PG\\QR' => $vendorDir . '/api/php_services/src/PG/QR.php',
'Api\\PhpServices\\PushToken\\Android' => $vendorDir . '/api/php_services/src/PushToken/Android.php', 'Api\\PhpServices\\PushToken\\Android' => $vendorDir . '/api/php_services/src/PushToken/Android.php',
'Api\\PhpServices\\PushToken\\Base' => $vendorDir . '/api/php_services/src/PushToken/Base.php', 'Api\\PhpServices\\PushToken\\Base' => $vendorDir . '/api/php_services/src/PushToken/Base.php',
'Api\\PhpServices\\PushToken\\Ios' => $vendorDir . '/api/php_services/src/PushToken/Ios.php', 'Api\\PhpServices\\PushToken\\Ios' => $vendorDir . '/api/php_services/src/PushToken/Ios.php',
...@@ -31,6 +29,8 @@ return array( ...@@ -31,6 +29,8 @@ return array(
'Api\\PhpServices\\Session\\RedisSessionHandler' => $vendorDir . '/api/php_services/src/Session/RedisSessionHandler.php', 'Api\\PhpServices\\Session\\RedisSessionHandler' => $vendorDir . '/api/php_services/src/Session/RedisSessionHandler.php',
'Api\\PhpServices\\Session\\Session' => $vendorDir . '/api/php_services/src/Session/Session.php', 'Api\\PhpServices\\Session\\Session' => $vendorDir . '/api/php_services/src/Session/Session.php',
'Api\\PhpServices\\Session\\SessionManager' => $vendorDir . '/api/php_services/src/Session/SessionManager.php', 'Api\\PhpServices\\Session\\SessionManager' => $vendorDir . '/api/php_services/src/Session/SessionManager.php',
'Api\\PhpServices\\ShopImage\\GetImage' => $vendorDir . '/api/php_services/src/ShopImage/GetImage.php',
'Api\\PhpServices\\ShopImage\\QR' => $vendorDir . '/api/php_services/src/ShopImage/QR.php',
'Api\\PhpServices\\Towerpro\\Towerpro' => $vendorDir . '/api/php_services/src/Towerpro/Towerpro.php', 'Api\\PhpServices\\Towerpro\\Towerpro' => $vendorDir . '/api/php_services/src/Towerpro/Towerpro.php',
'Api\\PhpServices\\Tuffy\\TuffyService' => $vendorDir . '/api/php_services/src/Tuffy/TuffyService.php', 'Api\\PhpServices\\Tuffy\\TuffyService' => $vendorDir . '/api/php_services/src/Tuffy/TuffyService.php',
'Api\\PhpServices\\XhProfiler\\XhMongo' => $vendorDir . '/api/php_services/src/XhProfiler/XhMongo.php', 'Api\\PhpServices\\XhProfiler\\XhMongo' => $vendorDir . '/api/php_services/src/XhProfiler/XhMongo.php',
...@@ -107,6 +107,7 @@ return array( ...@@ -107,6 +107,7 @@ return array(
'App\\Models\\shop\\mysql\\Shop' => $baseDir . '/application/models/shop/mysql/Shop.php', 'App\\Models\\shop\\mysql\\Shop' => $baseDir . '/application/models/shop/mysql/Shop.php',
'App\\Models\\shop\\mysql\\SubShop' => $baseDir . '/application/models/shop/mysql/SubShop.php', 'App\\Models\\shop\\mysql\\SubShop' => $baseDir . '/application/models/shop/mysql/SubShop.php',
'App\\Plugins\\Hook' => $baseDir . '/application/plugins/Hook.php', 'App\\Plugins\\Hook' => $baseDir . '/application/plugins/Hook.php',
'App\\Services\\common\\CommonService' => $baseDir . '/application/services/common/CommonService.php',
'App\\Services\\demo\\ElasticService' => $baseDir . '/application/services/demo/ElasticService.php', 'App\\Services\\demo\\ElasticService' => $baseDir . '/application/services/demo/ElasticService.php',
'App\\Services\\demo\\MongoService' => $baseDir . '/application/services/demo/MongoService.php', 'App\\Services\\demo\\MongoService' => $baseDir . '/application/services/demo/MongoService.php',
'App\\Services\\demo\\MysqlService' => $baseDir . '/application/services/demo/MysqlService.php', 'App\\Services\\demo\\MysqlService' => $baseDir . '/application/services/demo/MysqlService.php',
......
...@@ -250,8 +250,6 @@ class ComposerStaticInit48fd9e88279ffd9162a19bdedd5d5a0a ...@@ -250,8 +250,6 @@ class ComposerStaticInit48fd9e88279ffd9162a19bdedd5d5a0a
'Api\\PhpServices\\Ksy\\Ksyun' => __DIR__ . '/..' . '/api/php_services/src/Ksy/Ksyun.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', 'Api\\PhpServices\\LifeAccount\\Account' => __DIR__ . '/..' . '/api/php_services/src/LifeAccount/Account.php',
'Api\\PhpServices\\Login\\Login' => __DIR__ . '/..' . '/api/php_services/src/Login/Login.php', 'Api\\PhpServices\\Login\\Login' => __DIR__ . '/..' . '/api/php_services/src/Login/Login.php',
'Api\\PhpServices\\PG\\GetImage' => __DIR__ . '/..' . '/api/php_services/src/PG/GetImage.php',
'Api\\PhpServices\\PG\\QR' => __DIR__ . '/..' . '/api/php_services/src/PG/QR.php',
'Api\\PhpServices\\PushToken\\Android' => __DIR__ . '/..' . '/api/php_services/src/PushToken/Android.php', 'Api\\PhpServices\\PushToken\\Android' => __DIR__ . '/..' . '/api/php_services/src/PushToken/Android.php',
'Api\\PhpServices\\PushToken\\Base' => __DIR__ . '/..' . '/api/php_services/src/PushToken/Base.php', 'Api\\PhpServices\\PushToken\\Base' => __DIR__ . '/..' . '/api/php_services/src/PushToken/Base.php',
'Api\\PhpServices\\PushToken\\Ios' => __DIR__ . '/..' . '/api/php_services/src/PushToken/Ios.php', 'Api\\PhpServices\\PushToken\\Ios' => __DIR__ . '/..' . '/api/php_services/src/PushToken/Ios.php',
...@@ -260,6 +258,8 @@ class ComposerStaticInit48fd9e88279ffd9162a19bdedd5d5a0a ...@@ -260,6 +258,8 @@ class ComposerStaticInit48fd9e88279ffd9162a19bdedd5d5a0a
'Api\\PhpServices\\Session\\RedisSessionHandler' => __DIR__ . '/..' . '/api/php_services/src/Session/RedisSessionHandler.php', 'Api\\PhpServices\\Session\\RedisSessionHandler' => __DIR__ . '/..' . '/api/php_services/src/Session/RedisSessionHandler.php',
'Api\\PhpServices\\Session\\Session' => __DIR__ . '/..' . '/api/php_services/src/Session/Session.php', 'Api\\PhpServices\\Session\\Session' => __DIR__ . '/..' . '/api/php_services/src/Session/Session.php',
'Api\\PhpServices\\Session\\SessionManager' => __DIR__ . '/..' . '/api/php_services/src/Session/SessionManager.php', 'Api\\PhpServices\\Session\\SessionManager' => __DIR__ . '/..' . '/api/php_services/src/Session/SessionManager.php',
'Api\\PhpServices\\ShopImage\\GetImage' => __DIR__ . '/..' . '/api/php_services/src/ShopImage/GetImage.php',
'Api\\PhpServices\\ShopImage\\QR' => __DIR__ . '/..' . '/api/php_services/src/ShopImage/QR.php',
'Api\\PhpServices\\Towerpro\\Towerpro' => __DIR__ . '/..' . '/api/php_services/src/Towerpro/Towerpro.php', 'Api\\PhpServices\\Towerpro\\Towerpro' => __DIR__ . '/..' . '/api/php_services/src/Towerpro/Towerpro.php',
'Api\\PhpServices\\Tuffy\\TuffyService' => __DIR__ . '/..' . '/api/php_services/src/Tuffy/TuffyService.php', 'Api\\PhpServices\\Tuffy\\TuffyService' => __DIR__ . '/..' . '/api/php_services/src/Tuffy/TuffyService.php',
'Api\\PhpServices\\XhProfiler\\XhMongo' => __DIR__ . '/..' . '/api/php_services/src/XhProfiler/XhMongo.php', 'Api\\PhpServices\\XhProfiler\\XhMongo' => __DIR__ . '/..' . '/api/php_services/src/XhProfiler/XhMongo.php',
...@@ -336,6 +336,7 @@ class ComposerStaticInit48fd9e88279ffd9162a19bdedd5d5a0a ...@@ -336,6 +336,7 @@ class ComposerStaticInit48fd9e88279ffd9162a19bdedd5d5a0a
'App\\Models\\shop\\mysql\\Shop' => __DIR__ . '/../..' . '/application/models/shop/mysql/Shop.php', 'App\\Models\\shop\\mysql\\Shop' => __DIR__ . '/../..' . '/application/models/shop/mysql/Shop.php',
'App\\Models\\shop\\mysql\\SubShop' => __DIR__ . '/../..' . '/application/models/shop/mysql/SubShop.php', 'App\\Models\\shop\\mysql\\SubShop' => __DIR__ . '/../..' . '/application/models/shop/mysql/SubShop.php',
'App\\Plugins\\Hook' => __DIR__ . '/../..' . '/application/plugins/Hook.php', 'App\\Plugins\\Hook' => __DIR__ . '/../..' . '/application/plugins/Hook.php',
'App\\Services\\common\\CommonService' => __DIR__ . '/../..' . '/application/services/common/CommonService.php',
'App\\Services\\demo\\ElasticService' => __DIR__ . '/../..' . '/application/services/demo/ElasticService.php', 'App\\Services\\demo\\ElasticService' => __DIR__ . '/../..' . '/application/services/demo/ElasticService.php',
'App\\Services\\demo\\MongoService' => __DIR__ . '/../..' . '/application/services/demo/MongoService.php', 'App\\Services\\demo\\MongoService' => __DIR__ . '/../..' . '/application/services/demo/MongoService.php',
'App\\Services\\demo\\MysqlService' => __DIR__ . '/../..' . '/application/services/demo/MysqlService.php', 'App\\Services\\demo\\MysqlService' => __DIR__ . '/../..' . '/application/services/demo/MysqlService.php',
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
"source": { "source": {
"type": "git", "type": "git",
"url": "https://git.yidian-inc.com:8021/bp/php_services.git", "url": "https://git.yidian-inc.com:8021/bp/php_services.git",
"reference": "3a118172e1f4bb413ccbef92c037f4f3255b388a" "reference": "d12158b756ba1aee7d019a8d25ca79f49bbe1d8c"
}, },
"require": { "require": {
"api/php_utils": "dev-master", "api/php_utils": "dev-master",
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
"perftools/php-profiler": "^0.18.0", "perftools/php-profiler": "^0.18.0",
"php": "7.2.*" "php": "7.2.*"
}, },
"time": "2021-06-25T11:16:31+00:00", "time": "2021-06-28T03:58:57+00:00",
"default-branch": true, "default-branch": true,
"type": "library", "type": "library",
"installation-source": "source", "installation-source": "source",
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
"source": { "source": {
"type": "git", "type": "git",
"url": "https://git.yidian-inc.com:8021/bp/php_utils.git", "url": "https://git.yidian-inc.com:8021/bp/php_utils.git",
"reference": "16949fb782de0488cf192e3cd9d4e1268377294d" "reference": "a6fdc2ddaf55ca6f8f86a3295b7659a70c50b2ec"
}, },
"require": { "require": {
"elasticsearch/elasticsearch": "~7.0", "elasticsearch/elasticsearch": "~7.0",
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
"mongodb/mongodb": "1.4.3", "mongodb/mongodb": "1.4.3",
"php": "7.2.*" "php": "7.2.*"
}, },
"time": "2021-06-26T06:31:48+00:00", "time": "2021-06-28T03:25:55+00:00",
"default-branch": true, "default-branch": true,
"type": "library", "type": "library",
"installation-source": "source", "installation-source": "source",
...@@ -1951,12 +1951,12 @@ ...@@ -1951,12 +1951,12 @@
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/string.git", "url": "https://github.com/symfony/string.git",
"reference": "92855c727d7edabe004605f451ef0b274fa24490" "reference": "c29a3e649843f4a34eaa4be2683f4914e8b7f023"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symfony/string/zipball/92855c727d7edabe004605f451ef0b274fa24490", "url": "https://api.github.com/repos/symfony/string/zipball/c29a3e649843f4a34eaa4be2683f4914e8b7f023",
"reference": "92855c727d7edabe004605f451ef0b274fa24490", "reference": "c29a3e649843f4a34eaa4be2683f4914e8b7f023",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
...@@ -1973,7 +1973,7 @@ ...@@ -1973,7 +1973,7 @@
"symfony/translation-contracts": "^1.1|^2", "symfony/translation-contracts": "^1.1|^2",
"symfony/var-exporter": "^4.4|^5.0|^6.0" "symfony/var-exporter": "^4.4|^5.0|^6.0"
}, },
"time": "2021-06-06T09:52:30+00:00", "time": "2021-06-27T12:34:25+00:00",
"type": "library", "type": "library",
"installation-source": "dist", "installation-source": "dist",
"autoload": { "autoload": {
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
'aliases' => 'aliases' =>
array ( array (
), ),
'reference' => '48662ee0ac551270f90d09cda3f0a1ab5d45c556', 'reference' => '0d55d1b988fb0ef7b715037568463cf4b8fa5e88',
'name' => 'yidian/yaf_demo', 'name' => 'yidian/yaf_demo',
), ),
'versions' => 'versions' =>
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
array ( array (
0 => '9999999-dev', 0 => '9999999-dev',
), ),
'reference' => '3a118172e1f4bb413ccbef92c037f4f3255b388a', 'reference' => 'd12158b756ba1aee7d019a8d25ca79f49bbe1d8c',
), ),
'api/php_utils' => 'api/php_utils' =>
array ( array (
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
array ( array (
0 => '9999999-dev', 0 => '9999999-dev',
), ),
'reference' => '16949fb782de0488cf192e3cd9d4e1268377294d', 'reference' => 'a6fdc2ddaf55ca6f8f86a3295b7659a70c50b2ec',
), ),
'bacon/bacon-qr-code' => 'bacon/bacon-qr-code' =>
array ( array (
...@@ -300,7 +300,7 @@ ...@@ -300,7 +300,7 @@
'aliases' => 'aliases' =>
array ( array (
), ),
'reference' => '92855c727d7edabe004605f451ef0b274fa24490', 'reference' => 'c29a3e649843f4a34eaa4be2683f4914e8b7f023',
), ),
'yidian/yaf_demo' => 'yidian/yaf_demo' =>
array ( array (
...@@ -309,7 +309,7 @@ ...@@ -309,7 +309,7 @@
'aliases' => 'aliases' =>
array ( array (
), ),
'reference' => '48662ee0ac551270f90d09cda3f0a1ab5d45c556', 'reference' => '0d55d1b988fb0ef7b715037568463cf4b8fa5e88',
), ),
), ),
); );
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