mark před 2 roky
rodič
revize
f75e93c932
50 změnil soubory, kde provedl 117 přidání a 305 odebrání
  1. 2 2
      composer.json
  2. 0 188
      demo.php
  3. 4 4
      src/BaseAuth/AdminAuth.php
  4. 2 2
      src/Bean/BaseAuth/AddUserParamBean.php
  5. 1 1
      src/Bean/BaseBean.php
  6. 1 1
      src/Bean/BaseBeanV1.php
  7. 2 2
      src/Bean/Crm/TaobaoBatchSendParamBean.php
  8. 2 2
      src/Bean/ElasticSearch/CreateLogDocParamBean.php
  9. 2 2
      src/Bean/ElasticSearch/GetLogDocParamBean.php
  10. 2 2
      src/Bean/Pay/GetCodePayUrlParamBean.php
  11. 2 2
      src/Bean/Pdd/Ddk/GoodsDetailParamBean.php
  12. 2 2
      src/Bean/Pdd/Ddk/GoodsPromotionUrlGenerateParamBean.php
  13. 2 2
      src/Bean/Pdd/Ddk/GoodsRecommendGetParamBean.php
  14. 2 2
      src/Bean/Pdd/Ddk/GoodsSearchParamBean.php
  15. 2 2
      src/Bean/Pdd/Ddk/OrderListRangeGetParamBean.php
  16. 2 2
      src/Bean/Pdd/Ddk/PidStatusEnum.php
  17. 2 2
      src/Bean/Pdd/Ddk/ResourceUrlGenParamBean.php
  18. 2 2
      src/Bean/Qr/CreateQrLogoImgServiceParamBean.php
  19. 2 2
      src/Bean/SendEmail/SendEmailByCustomeParamBean.php
  20. 4 4
      src/Crm/Crm.php
  21. 3 3
      src/CrmTool.php
  22. 3 3
      src/ElasticSearch/ElasticSerach.php
  23. 2 2
      src/Enum/Pdd/Ddk/DdkResourceTypeEnum.php
  24. 5 5
      src/EsTool.php
  25. 1 1
      src/Excel/Export.php
  26. 3 3
      src/ExcelTool.php
  27. 1 1
      src/Exception/AuthException.php
  28. 1 1
      src/Exception/CrmException.php
  29. 1 1
      src/Exception/ElasticSearchException.php
  30. 1 1
      src/Exception/FileException.php
  31. 1 1
      src/Exception/HttpCustomeException.php
  32. 1 1
      src/Exception/PayException.php
  33. 1 1
      src/Exception/QiWeiException.php
  34. 1 1
      src/Exception/SendEmailException.php
  35. 1 1
      src/Exception/SmsException.php
  36. 2 2
      src/HttpCurl.php
  37. 2 2
      src/Mq/MqService.php
  38. 2 2
      src/MqTool.php
  39. 5 5
      src/Pay/PayService.php
  40. 5 5
      src/PayTool.php
  41. 9 9
      src/Pdd/Ddk/DdkDaogouService.php
  42. 4 4
      src/QiWeiTool.php
  43. 3 3
      src/Qr/QrService.php
  44. 4 4
      src/QrTool.php
  45. 3 3
      src/SendEmail.php
  46. 2 2
      src/Sms/QidianyunSms.php
  47. 2 2
      src/Sms/SanTiSms.php
  48. 4 4
      src/SmsTool.php
  49. 3 3
      src/UploadTool.php
  50. 1 1
      src/template/Ceshi.php

+ 2 - 2
composer.json

@@ -1,5 +1,5 @@
 {
-    "name": "shantao/tool",
+    "name": "mayou/tool",
     "description": "工具包",
     "authors": [
         {
@@ -22,7 +22,7 @@
     },
     "autoload": {
         "psr-4": {
-            "Tool\\ShanTaoTool\\": "src/shanTaoTool"
+            "Tool\\": "src"
         }
     }
 }

+ 0 - 188
demo.php

@@ -5,191 +5,3 @@ use Tool\ShanTaoTool\EsTool;
 
 require_once "./vendor/autoload.php";
 
-//$url = "www.baidu.com";
-//$url = "https://runion.meituan.com/url?key=765f44a936837a4c8a347d7e6576cf69&url=https%3A%2F%2Fcube.meituan.com%2Fawp%2Fhfe%2Fblock%2Fa945391288b790d558b7%2F78716%2Findex.html%3Fappkey%3D765f44a936837a4c8a347d7e6576cf69%3A1234561&sid=1234561";
-//var_dump(\Tool\ShanTaoTool\QiWeiTool::sendImgTxtToBaoJing(
-//    "http://image.vv-tool.com/meituan.jpg",
-//    $url,
-//    "美团外卖",
-//    "外卖领券",
-//    "daogouqun")
-//);
-//var_dump(\Tool\ShanTaoTool\QiWeiTool::sendImgToBaoJing("2.png","daogouqun"));
-
-//var_dump(\Tool\ShanTaoTool\BaseAuth\AdminAuth::login("hujie1","123456","88888888"));
-//var_dump(\Tool\ShanTaoTool\BaseAuth\AdminAuth::getAuth());
-
-//var_dump(\Tool\ShanTaoTool\QiWeiTool::sendMessageToBaoJing("ceshi"));
-
-//$head = ["测试","名字"];
-//$data = [
-//    [
-//        "测试","anii"
-//    ],
-//    [
-//        "skdh","ksi8"
-//    ]
-//];
-
-//\Tool\ShanTaoTool\ExcelTool::exportToCsv($head,$data,"ceshi");
-
-
-
-//
-//
-//$channel = $connection->channel();
-//
-//echo ' [*] Waiting for messages. To exit press CTRL+C', "\n";
-//
-//$callback = function($msg) {
-//    echo " [x] Received ", $msg->body, "\n";
-//    $data = json_decode($msg->body,true);
-//    $bean = new CreateLogDocParamBean($data);
-//    $res = EsTool::createLogDoc($bean);
-//    var_dump($res);
-//};
-//
-//$channel->basic_consume('vtoolLogQueue', '', false, true, false, false, $callback);
-//
-//while(count($channel->callbacks)) {
-//    $channel->wait();
-//}
-//
-//$channel->close();
-//$connection->close();
-
-
-
-//测试es
-//$data = [
-//    "requestParams"=>json_encode(["name"=>"mark"]),
-//    "requestResponse"=>json_encode(["age"=>29]),
-//    "requestPath"=>"/ceshi/path",
-//    "requestLog"=>json_encode(["ceshi","自定义日志"]),
-//    "requestSqlLog"=>json_encode(["insel sql","update sql"]),
-//    "requestProjectName"=>"vtool",
-//    "createdAt"=>"1611916077.8329",
-//    "updatedAt"=>"1611916231.7019",
-//    "requestId"=>1611916231,
-//    "uniqueTraceId"=>md5(1234)
-//];
-//$bean = new \Tool\ShanTaoTool\Bean\ElasticSearch\CreateLogDocParamBean($data);
-//$res = \Tool\ShanTaoTool\EsTool::createLogDoc($bean);
-//var_dump($res);
-//var_dump($data);
-//
-//\Tool\ShanTaoTool\ElasticSearch\ElasticSerach::getElasticSearchClient();
-//$client = \Tool\ShanTaoTool\ElasticSearch\ElasticSerach::$client;
-//$param = [
-//    "index"=>"2021-03-08",
-//    "projectName"=>"vtool",
-////    "requestPath"=>"doc/apps/docs",
-//    "page"=>1,
-//    "pageSize"=>2,
-//    "unique_trace_id"=>"81dc9bdb52d04dc20036dbd8313ed055"
-//];
-//$bean = new \Tool\ShanTaoTool\Bean\ElasticSearch\GetLogDocParamBean($param);
-//$data = \Tool\ShanTaoTool\EsTool::getLogDoc($bean);
-//var_dump($data);
-
-//ini_set("memory_limit",-1);
-//
-//$datas = \Tool\ShanTaoTool\ExcelTool::importExcel("1.xlsx");
-//$heades = [];
-//$headData = json_decode($datas[1][1],true);
-//foreach ($headData as $key=>$val){
-//    if(!is_array($val)){
-//        $heades[] = $key;
-//    }
-//}
-//
-//$res = [];
-//foreach ($datas as $k=>$data){
-//    if($k>0){
-//        $tmps = json_decode($data[1],true);
-//        foreach ($tmps as $tmpKey=>$kv){
-//            if(!is_array($kv)){
-//                if(in_array($tmpKey,["inputDate","actionDate","amoytocustomerDate"])){
-//                    if($kv){
-//                        $kv = " ".date("Y-m-d H:i:s",$kv/1000);
-//                    }
-//                }
-//                $res[$k-1][]=$kv;
-//            }
-//        }
-//    }
-//
-//}
-//var_dump("数据总数:".count($res));
-////\Tool\ShanTaoTool\ExcelTool::exportToCsv($heades,$res,"修正");
-////打开PHP文件句柄,php://output,表示直接输出到浏览器
-//$fp = fopen("修正.csv","a+");
-//fwrite($fp, chr(0xEF).chr(0xBB).chr(0xBF)); // 添加 BOM
-////输出Excel列表名称信息
-//$headerList = $heades;
-//foreach ($headerList as $key => $value) {
-////            $headerList[$key] = iconv('UTF-8', 'GBK', $value);//CSV的EXCEL支持BGK编码,一定要转换,否则乱码
-//    $headerList[$key] = $value;//CSV的EXCEL支持BGK编码,一定要转换,否则乱码
-//}
-////使用fputcsv将数据写入文件句柄
-//fputcsv($fp, $headerList);
-////计数器
-//$num = 0;
-////每隔$limit行,刷新一下输出buffer,不要太大亦不要太小
-//$limit = 100000;
-//$data = $res;
-////逐行去除数据,不浪费内存
-//$count = count($data);
-//for($i = 0 ; $i < $count ; $i++){
-//    $num++;
-//    //刷新一下输出buffer,防止由于数据过多造成问题
-////    if($limit == $num){
-////        ob_flush();
-////        flush();
-////        $num = 0;
-////    }
-//    $row = $data[$i];
-//    foreach ($row as $key => $value) {
-//        $value = is_numeric($value) ? $value."\t" : $value;//解决输出长度较长的数字型变成科学计数法
-//        $row[$key] = $value;
-////                $row[$key] = iconv('UTF-8', 'GBK', $value);
-//    }
-//    fputcsv($fp, $row);
-//}
-//fclose($fp);
-
-//$txt = \Tool\ShanTaoTool\QrTool::getQrContent("http://oss.taobao2622.top/WechatIMG3.jpeg");
-//var_dump($txt);
-
-//$re = \Tool\ShanTaoTool\SendEmail::sendEmail("底单处理通知","v兔工具",'1152888295@qq.com',"<p data-we-empty-p=''>尊敬的用户:</p><p>您提交的关于包裹id:包裹idxxx,快递公司:快递公司xxx,快递单号:快递单号xxx,申请的底单已经完成申请,</p><p>以下电子面单:</p><p><img src='底单图片xxx' style='max-width:50%;'><br></p><p><br></p><p>如果需要查看详情,点击http://www.vv-tool.com/store/list,如果有什么问题请及时联系网站客服<br></p><p></p><p></p><p>备注:备注xxx</p><hr><p data-we-empty-p=''>v兔电商工具</p>");
-//var_dump($re);
-
-//$res = \Tool\ShanTaoTool\Pdd\Ddk\DdkDaogouService::goodsPidGenerate(1);
-//$res = \Tool\ShanTaoTool\Pdd\Ddk\DdkDaogouService::goodsPidQuery(1,10,0);
-//$bean = [
-//      "pid"=>"14844776_209372830",
-//      "generateWeApp"=>"true",
-//      "resourceType"=>\Tool\ShanTaoTool\Enum\Pdd\Ddk\DdkResourceTypeEnum::RESOURCE_HUOCHEPIAO
-//];
-//$bean = new \Tool\ShanTaoTool\Bean\Pdd\Ddk\ResourceUrlGenParamBean($bean);
-//$res = \Tool\ShanTaoTool\Pdd\Ddk\DdkDaogouService::resourceUrlGen($bean);
-//$bean = new \Tool\ShanTaoTool\Bean\Pdd\Ddk\OrderListRangeGetParamBean(
-//    [
-//        "startTime"=>"2021-05-18 13:50:00",
-//        "endTime"=>"2021-05-18 15:19:00",
-//    ]
-//);
-//$res = \Tool\ShanTaoTool\Pdd\Ddk\DdkDaogouService::orderListRangeGet($bean);
-//$res = \Tool\ShanTaoTool\Sms\QidianyunSms::send("18768452697","1334");
-//var_dump($res);
-
-$str = "ceshi";
-$params = [
-    "fileName"=>"1.jpg",
-    "qrContent"=>"nicai",
-    "qrSize"=>20,
-    "logoName"=>"1.jpeg"
-];
-$bean = new \Tool\ShanTaoTool\Bean\Qr\CreateQrLogoImgServiceParamBean($params);
-$res = \Tool\ShanTaoTool\QrTool::createQrLogoImg($bean);
-var_dump($res);

+ 4 - 4
src/shanTaoTool/BaseAuth/AdminAuth.php → src/BaseAuth/AdminAuth.php

@@ -1,12 +1,12 @@
 <?php
 
 
-namespace Tool\ShanTaoTool\BaseAuth;
+namespace Tool\MayouTool\BaseAuth;
 
 
-use Tool\ShanTaoTool\Bean\BaseAuth\AddUserParamBean;
-use Tool\ShanTaoTool\Exception\AuthException;
-use Tool\ShanTaoTool\HttpCurl;
+use Tool\MayouTool\Bean\BaseAuth\AddUserParamBean;
+use Tool\MayouTool\Exception\AuthException;
+use Tool\MayouTool\HttpCurl;
 
 class AdminAuth
 {

+ 2 - 2
src/shanTaoTool/Bean/BaseAuth/AddUserParamBean.php → src/Bean/BaseAuth/AddUserParamBean.php

@@ -1,10 +1,10 @@
 <?php
 
 
-namespace Tool\ShanTaoTool\Bean\BaseAuth;
+namespace Tool\MayouTool\Bean\BaseAuth;
 
 
-use Tool\ShanTaoTool\Bean\BaseBean;
+use Tool\MayouTool\Bean\BaseBean;
 
 class AddUserParamBean extends BaseBean
 {

+ 1 - 1
src/shanTaoTool/Bean/BaseBean.php → src/Bean/BaseBean.php

@@ -1,7 +1,7 @@
 <?php
 
 
-namespace Tool\ShanTaoTool\Bean;
+namespace Tool\MayouTool\Bean;
 
 
 

+ 1 - 1
src/shanTaoTool/Bean/BaseBeanV1.php → src/Bean/BaseBeanV1.php

@@ -1,7 +1,7 @@
 <?php
 
 
-namespace Tool\ShanTaoTool\Bean;
+namespace Tool\MayouTool\Bean;
 
 
 

+ 2 - 2
src/shanTaoTool/Bean/Crm/TaobaoBatchSendParamBean.php → src/Bean/Crm/TaobaoBatchSendParamBean.php

@@ -1,10 +1,10 @@
 <?php
 
 
-namespace Tool\ShanTaoTool\Bean\Crm;
+namespace Tool\MayouTool\Bean\Crm;
 
 
-use Tool\ShanTaoTool\Bean\BaseBean;
+use Tool\MayouTool\Bean\BaseBean;
 
 class TaobaoBatchSendParamBean extends BaseBean
 {

+ 2 - 2
src/shanTaoTool/Bean/ElasticSearch/CreateLogDocParamBean.php → src/Bean/ElasticSearch/CreateLogDocParamBean.php

@@ -1,10 +1,10 @@
 <?php
 
 
-namespace Tool\ShanTaoTool\Bean\ElasticSearch;
+namespace Tool\MayouTool\Bean\ElasticSearch;
 
 
-use Tool\ShanTaoTool\Bean\BaseBean;
+use Tool\MayouTool\Bean\BaseBean;
 
 class CreateLogDocParamBean extends BaseBean
 {

+ 2 - 2
src/shanTaoTool/Bean/ElasticSearch/GetLogDocParamBean.php → src/Bean/ElasticSearch/GetLogDocParamBean.php

@@ -1,10 +1,10 @@
 <?php
 
 
-namespace Tool\ShanTaoTool\Bean\ElasticSearch;
+namespace Tool\MayouTool\Bean\ElasticSearch;
 
 
-use Tool\ShanTaoTool\Bean\BaseBean;
+use Tool\MayouTool\Bean\BaseBean;
 
 class GetLogDocParamBean extends BaseBean
 {

+ 2 - 2
src/shanTaoTool/Bean/Pay/GetCodePayUrlParamBean.php → src/Bean/Pay/GetCodePayUrlParamBean.php

@@ -1,10 +1,10 @@
 <?php
 
 
-namespace Tool\ShanTaoTool\Bean\Pay;
+namespace Tool\MayouTool\Bean\Pay;
 
 
-use Tool\ShanTaoTool\Bean\BaseBean;
+use Tool\MayouTool\Bean\BaseBean;
 
 class GetCodePayUrlParamBean extends BaseBean
 {

+ 2 - 2
src/shanTaoTool/Bean/Pdd/Ddk/GoodsDetailParamBean.php → src/Bean/Pdd/Ddk/GoodsDetailParamBean.php

@@ -1,10 +1,10 @@
 <?php
 
 
-namespace Tool\ShanTaoTool\Bean\Pdd\Ddk;
+namespace Tool\MayouTool\Bean\Pdd\Ddk;
 
 
-use Tool\ShanTaoTool\Bean\BaseBean;
+use Tool\MayouTool\Bean\BaseBean;
 
 class GoodsDetailParamBean extends BaseBean
 {

+ 2 - 2
src/shanTaoTool/Bean/Pdd/Ddk/GoodsPromotionUrlGenerateParamBean.php → src/Bean/Pdd/Ddk/GoodsPromotionUrlGenerateParamBean.php

@@ -1,11 +1,11 @@
 <?php
 
 
-namespace Tool\ShanTaoTool\Bean\Pdd\Ddk;
+namespace Tool\MayouTool\Bean\Pdd\Ddk;
 
 
 
-use Tool\ShanTaoTool\Bean\BaseBeanV1;
+use Tool\MayouTool\Bean\BaseBeanV1;
 
 class GoodsPromotionUrlGenerateParamBean extends BaseBeanV1
 {

+ 2 - 2
src/shanTaoTool/Bean/Pdd/Ddk/GoodsRecommendGetParamBean.php → src/Bean/Pdd/Ddk/GoodsRecommendGetParamBean.php

@@ -1,10 +1,10 @@
 <?php
 
 
-namespace Tool\ShanTaoTool\Bean\Pdd\Ddk;
+namespace Tool\MayouTool\Bean\Pdd\Ddk;
 
 
-use Tool\ShanTaoTool\Bean\BaseBeanV1;
+use Tool\MayouTool\Bean\BaseBeanV1;
 
 class GoodsRecommendGetParamBean extends BaseBeanV1
 {

+ 2 - 2
src/shanTaoTool/Bean/Pdd/Ddk/GoodsSearchParamBean.php → src/Bean/Pdd/Ddk/GoodsSearchParamBean.php

@@ -1,10 +1,10 @@
 <?php
 
 
-namespace Tool\ShanTaoTool\Bean\Pdd\Ddk;
+namespace Tool\MayouTool\Bean\Pdd\Ddk;
 
 
-use Tool\ShanTaoTool\Bean\BaseBeanV1;
+use Tool\MayouTool\Bean\BaseBeanV1;
 
 class GoodsSearchParamBean extends BaseBeanV1
 {

+ 2 - 2
src/shanTaoTool/Bean/Pdd/Ddk/OrderListRangeGetParamBean.php → src/Bean/Pdd/Ddk/OrderListRangeGetParamBean.php

@@ -1,10 +1,10 @@
 <?php
 
 
-namespace Tool\ShanTaoTool\Bean\Pdd\Ddk;
+namespace Tool\MayouTool\Bean\Pdd\Ddk;
 
 
-use Tool\ShanTaoTool\Bean\BaseBean;
+use Tool\MayouTool\Bean\BaseBean;
 
 class OrderListRangeGetParamBean extends BaseBean
 {

+ 2 - 2
src/shanTaoTool/Bean/Pdd/Ddk/PidStatusEnum.php → src/Bean/Pdd/Ddk/PidStatusEnum.php

@@ -1,13 +1,13 @@
 <?php
 
 
-namespace Tool\ShanTaoTool\Bean\Pdd\Ddk;
+namespace Tool\MayouTool\Bean\Pdd\Ddk;
 
 
 /**
  * 推广位状态枚举类
  * Class PidStatusEnum
- * @package Tool\ShanTaoTool\Bean\Pdd\Ddk
+ * @package Tool\MayouTool\Bean\Pdd\Ddk
  */
 class PidStatusEnum
 {

+ 2 - 2
src/shanTaoTool/Bean/Pdd/Ddk/ResourceUrlGenParamBean.php → src/Bean/Pdd/Ddk/ResourceUrlGenParamBean.php

@@ -1,10 +1,10 @@
 <?php
 
 
-namespace Tool\ShanTaoTool\Bean\Pdd\Ddk;
+namespace Tool\MayouTool\Bean\Pdd\Ddk;
 
 
-use Tool\ShanTaoTool\Bean\BaseBean;
+use Tool\MayouTool\Bean\BaseBean;
 
 class ResourceUrlGenParamBean extends BaseBean
 {

+ 2 - 2
src/shanTaoTool/Bean/Qr/CreateQrLogoImgServiceParamBean.php → src/Bean/Qr/CreateQrLogoImgServiceParamBean.php

@@ -1,10 +1,10 @@
 <?php
 
 
-namespace Tool\ShanTaoTool\Bean\Qr;
+namespace Tool\MayouTool\Bean\Qr;
 
 
-use Tool\ShanTaoTool\Bean\BaseBean;
+use Tool\MayouTool\Bean\BaseBean;
 
 class CreateQrLogoImgServiceParamBean extends BaseBean
 {

+ 2 - 2
src/shanTaoTool/Bean/SendEmail/SendEmailByCustomeParamBean.php → src/Bean/SendEmail/SendEmailByCustomeParamBean.php

@@ -1,10 +1,10 @@
 <?php
 
 
-namespace Tool\ShanTaoTool\Bean\SendEmail;
+namespace Tool\MayouTool\Bean\SendEmail;
 
 
-use Tool\ShanTaoTool\Bean\BaseBean;
+use Tool\MayouTool\Bean\BaseBean;
 
 class SendEmailByCustomeParamBean extends BaseBean
 {

+ 4 - 4
src/shanTaoTool/Crm/Crm.php → src/Crm/Crm.php

@@ -1,12 +1,12 @@
 <?php
 
 
-namespace Tool\ShanTaoTool\Crm;
+namespace Tool\MayouTool\Crm;
 
 
-use Tool\ShanTaoTool\Bean\Crm\TaobaoBatchSendParamBean;
-use Tool\ShanTaoTool\Exception\CrmException;
-use Tool\ShanTaoTool\HttpCurl;
+use Tool\MayouTool\Bean\Crm\TaobaoBatchSendParamBean;
+use Tool\MayouTool\Exception\CrmException;
+use Tool\MayouTool\HttpCurl;
 
 class Crm
 {

+ 3 - 3
src/shanTaoTool/CrmTool.php → src/CrmTool.php

@@ -1,11 +1,11 @@
 <?php
 
 
-namespace Tool\ShanTaoTool;
+namespace Tool\MayouTool;
 
 
-use Tool\ShanTaoTool\Bean\Crm\TaobaoBatchSendParamBean;
-use Tool\ShanTaoTool\Crm\Crm;
+use Tool\MayouTool\Bean\Crm\TaobaoBatchSendParamBean;
+use Tool\MayouTool\Crm\Crm;
 
 class CrmTool
 {

+ 3 - 3
src/shanTaoTool/ElasticSearch/ElasticSerach.php → src/ElasticSearch/ElasticSerach.php

@@ -1,12 +1,12 @@
 <?php
 
 
-namespace Tool\ShanTaoTool\ElasticSearch;
+namespace Tool\MayouTool\ElasticSearch;
 
 use function Complex\sec;
 use Elasticsearch\ClientBuilder;
-use Tool\ShanTaoTool\Bean\ElasticSearch\GetLogDocParamBean;
-use Tool\ShanTaoTool\Exception\ElasticSearchException;
+use Tool\MayouTool\Bean\ElasticSearch\GetLogDocParamBean;
+use Tool\MayouTool\Exception\ElasticSearchException;
 
 /**
  * es操作类

+ 2 - 2
src/shanTaoTool/Enum/Pdd/Ddk/DdkResourceTypeEnum.php → src/Enum/Pdd/Ddk/DdkResourceTypeEnum.php

@@ -1,13 +1,13 @@
 <?php
 
 
-namespace Tool\ShanTaoTool\Enum\Pdd\Ddk;
+namespace Tool\MayouTool\Enum\Pdd\Ddk;
 
 
 /**
  * 多多客频道来源枚举类
  * Class DdkResourceTypeEnum
- * @package Tool\ShanTaoTool\Enum\Pdd\Ddk
+ * @package Tool\MayouTool\Enum\Pdd\Ddk
  */
 class DdkResourceTypeEnum
 {

+ 5 - 5
src/shanTaoTool/EsTool.php → src/EsTool.php

@@ -1,13 +1,13 @@
 <?php
 
 
-namespace Tool\ShanTaoTool;
+namespace Tool\MayouTool;
 
 
-use Tool\ShanTaoTool\Bean\ElasticSearch\CreateLogDocParamBean;
-use Tool\ShanTaoTool\Bean\ElasticSearch\GetLogDocParamBean;
-use Tool\ShanTaoTool\ElasticSearch\ElasticSerach;
-use Tool\ShanTaoTool\Exception\ElasticSearchException;
+use Tool\MayouTool\Bean\ElasticSearch\CreateLogDocParamBean;
+use Tool\MayouTool\Bean\ElasticSearch\GetLogDocParamBean;
+use Tool\MayouTool\ElasticSearch\ElasticSerach;
+use Tool\MayouTool\Exception\ElasticSearchException;
 
 class EsTool
 {

+ 1 - 1
src/shanTaoTool/Excel/Export.php → src/Excel/Export.php

@@ -1,7 +1,7 @@
 <?php
 
 
-namespace Tool\ShanTaoTool\Excel;
+namespace Tool\MayouTool\Excel;
 
 
 use PhpOffice\PhpSpreadsheet\IOFactory;

+ 3 - 3
src/shanTaoTool/ExcelTool.php → src/ExcelTool.php

@@ -1,11 +1,11 @@
 <?php
 
 
-namespace Tool\ShanTaoTool;
+namespace Tool\MayouTool;
 
 
-use Tool\ShanTaoTool\Excel\Export;
-use Tool\ShanTaoTool\Exception\FileException;
+use Tool\MayouTool\Excel\Export;
+use Tool\MayouTool\Exception\FileException;
 
 class ExcelTool
 {

+ 1 - 1
src/shanTaoTool/Exception/AuthException.php → src/Exception/AuthException.php

@@ -1,7 +1,7 @@
 <?php
 
 
-namespace Tool\ShanTaoTool\Exception;
+namespace Tool\MayouTool\Exception;
 
 
 class AuthException extends \Exception

+ 1 - 1
src/shanTaoTool/Exception/CrmException.php → src/Exception/CrmException.php

@@ -1,7 +1,7 @@
 <?php
 
 
-namespace Tool\ShanTaoTool\Exception;
+namespace Tool\MayouTool\Exception;
 
 
 class CrmException extends \Exception

+ 1 - 1
src/shanTaoTool/Exception/ElasticSearchException.php → src/Exception/ElasticSearchException.php

@@ -1,7 +1,7 @@
 <?php
 
 
-namespace Tool\ShanTaoTool\Exception;
+namespace Tool\MayouTool\Exception;
 
 
 class ElasticSearchException extends \Exception

+ 1 - 1
src/shanTaoTool/Exception/FileException.php → src/Exception/FileException.php

@@ -1,7 +1,7 @@
 <?php
 
 
-namespace Tool\ShanTaoTool\Exception;
+namespace Tool\MayouTool\Exception;
 
 
 class FileException extends \Exception

+ 1 - 1
src/shanTaoTool/Exception/HttpCustomeException.php → src/Exception/HttpCustomeException.php

@@ -1,7 +1,7 @@
 <?php
 
 
-namespace Tool\ShanTaoTool\Exception;
+namespace Tool\MayouTool\Exception;
 
 
 class HttpCustomeException extends \Exception

+ 1 - 1
src/shanTaoTool/Exception/PayException.php → src/Exception/PayException.php

@@ -1,7 +1,7 @@
 <?php
 
 
-namespace Tool\ShanTaoTool\Exception;
+namespace Tool\MayouTool\Exception;
 
 
 class PayException extends \Exception

+ 1 - 1
src/shanTaoTool/Exception/QiWeiException.php → src/Exception/QiWeiException.php

@@ -1,7 +1,7 @@
 <?php
 
 
-namespace Tool\ShanTaoTool\Exception;
+namespace Tool\MayouTool\Exception;
 
 
 class QiWeiException extends \Exception

+ 1 - 1
src/shanTaoTool/Exception/SendEmailException.php → src/Exception/SendEmailException.php

@@ -1,7 +1,7 @@
 <?php
 
 
-namespace Tool\ShanTaoTool\Exception;
+namespace Tool\MayouTool\Exception;
 
 
 class SendEmailException extends \Exception

+ 1 - 1
src/shanTaoTool/Exception/SmsException.php → src/Exception/SmsException.php

@@ -1,7 +1,7 @@
 <?php
 
 
-namespace Tool\ShanTaoTool\Exception;
+namespace Tool\MayouTool\Exception;
 
 
 class SmsException extends \Exception

+ 2 - 2
src/shanTaoTool/HttpCurl.php → src/HttpCurl.php

@@ -1,11 +1,11 @@
 <?php
 
 
-namespace Tool\ShanTaoTool;
+namespace Tool\MayouTool;
 
 
 use Curl\Curl;
-use Tool\ShanTaoTool\Exception\HttpCustomeException;
+use Tool\MayouTool\Exception\HttpCustomeException;
 
 class HttpCurl
 {

+ 2 - 2
src/shanTaoTool/Mq/MqService.php → src/Mq/MqService.php

@@ -1,7 +1,7 @@
 <?php
 
 
-namespace Tool\ShanTaoTool\Mq;
+namespace Tool\MayouTool\Mq;
 
 use PhpAmqpLib\Connection\AMQPStreamConnection;
 use PhpAmqpLib\Message\AMQPMessage;
@@ -9,7 +9,7 @@ use PhpAmqpLib\Message\AMQPMessage;
 /**
  * mq服务
  * Class MqService
- * @package Tool\ShanTaoTool\Mq
+ * @package Tool\MayouTool\Mq
  */
 class MqService
 {

+ 2 - 2
src/shanTaoTool/MqTool.php → src/MqTool.php

@@ -1,10 +1,10 @@
 <?php
 
 
-namespace Tool\ShanTaoTool;
+namespace Tool\MayouTool;
 
 
-use Tool\ShanTaoTool\Mq\MqService;
+use Tool\MayouTool\Mq\MqService;
 
 class MqTool
 {

+ 5 - 5
src/shanTaoTool/Pay/PayService.php → src/Pay/PayService.php

@@ -1,16 +1,16 @@
 <?php
 
 
-namespace Tool\ShanTaoTool\Pay;
+namespace Tool\MayouTool\Pay;
 
-use Tool\ShanTaoTool\Bean\Pay\GetCodePayUrlParamBean;
-use Tool\ShanTaoTool\Exception\PayException;
-use Tool\ShanTaoTool\HttpCurl;
+use Tool\MayouTool\Bean\Pay\GetCodePayUrlParamBean;
+use Tool\MayouTool\Exception\PayException;
+use Tool\MayouTool\HttpCurl;
 
 /**
  * 支付服务类
  * Class PayService
- * @package Tool\ShanTaoTool\Pay
+ * @package Tool\MayouTool\Pay
  */
 class PayService
 {

+ 5 - 5
src/shanTaoTool/PayTool.php → src/PayTool.php

@@ -1,16 +1,16 @@
 <?php
 
 
-namespace Tool\ShanTaoTool;
+namespace Tool\MayouTool;
 
-use Tool\ShanTaoTool\Bean\Pay\GetCodePayUrlParamBean;
-use Tool\ShanTaoTool\Exception\PayException;
-use Tool\ShanTaoTool\Pay\PayService;
+use Tool\MayouTool\Bean\Pay\GetCodePayUrlParamBean;
+use Tool\MayouTool\Exception\PayException;
+use Tool\MayouTool\Pay\PayService;
 
 /**
  * 支付工具类
  * Class PayTool
- * @package Tool\ShanTaoTool
+ * @package Tool\MayouTool
  */
 class PayTool
 {

+ 9 - 9
src/shanTaoTool/Pdd/Ddk/DdkDaogouService.php → src/Pdd/Ddk/DdkDaogouService.php

@@ -1,21 +1,21 @@
 <?php
 
 
-namespace Tool\ShanTaoTool\Pdd\Ddk;
+namespace Tool\MayouTool\Pdd\Ddk;
 
 
-use Tool\ShanTaoTool\Bean\Pdd\Ddk\GoodsDetailParamBean;
-use Tool\ShanTaoTool\Bean\Pdd\Ddk\GoodsPromotionUrlGenerateParamBean;
-use Tool\ShanTaoTool\Bean\Pdd\Ddk\GoodsRecommendGetParamBean;
-use Tool\ShanTaoTool\Bean\Pdd\Ddk\GoodsSearchParamBean;
-use Tool\ShanTaoTool\Bean\Pdd\Ddk\OrderListRangeGetParamBean;
-use Tool\ShanTaoTool\Bean\Pdd\Ddk\ResourceUrlGenParamBean;
-use Tool\ShanTaoTool\HttpCurl;
+use Tool\MayouTool\Bean\Pdd\Ddk\GoodsDetailParamBean;
+use Tool\MayouTool\Bean\Pdd\Ddk\GoodsPromotionUrlGenerateParamBean;
+use Tool\MayouTool\Bean\Pdd\Ddk\GoodsRecommendGetParamBean;
+use Tool\MayouTool\Bean\Pdd\Ddk\GoodsSearchParamBean;
+use Tool\MayouTool\Bean\Pdd\Ddk\OrderListRangeGetParamBean;
+use Tool\MayouTool\Bean\Pdd\Ddk\ResourceUrlGenParamBean;
+use Tool\MayouTool\HttpCurl;
 
 /**
  * 多多客导购服务类
  * Class DdkDaogouService
- * @package Tool\ShanTaoTool\Pdd\Ddk
+ * @package Tool\MayouTool\Pdd\Ddk
  */
 class DdkDaogouService
 {

+ 4 - 4
src/shanTaoTool/QiWeiTool.php → src/QiWeiTool.php

@@ -1,15 +1,15 @@
 <?php
 
 
-namespace Tool\ShanTaoTool;
+namespace Tool\MayouTool;
 
-use Tool\ShanTaoTool\Exception\HttpCustomeException;
-use Tool\ShanTaoTool\Exception\QiWeiException;
+use Tool\MayouTool\Exception\HttpCustomeException;
+use Tool\MayouTool\Exception\QiWeiException;
 
 /**
  * 企业微信工具
  * Class QiWeiTool
- * @package Tool\ShanTaoTool
+ * @package Tool\MayouTool
  */
 class QiWeiTool
 {

+ 3 - 3
src/shanTaoTool/Qr/QrService.php → src/Qr/QrService.php

@@ -1,17 +1,17 @@
 <?php
 
 
-namespace Tool\ShanTaoTool\Qr;
+namespace Tool\MayouTool\Qr;
 
 use lrq\qrcode\QrcodeMain;
 use tekintian\TekinQR;
-use Tool\ShanTaoTool\Bean\Qr\CreateQrLogoImgServiceParamBean;
+use Tool\MayouTool\Bean\Qr\CreateQrLogoImgServiceParamBean;
 use Zxing\QrReader;
 
 /**
  * 二维码服务类
  * Class QrService
- * @package Tool\ShanTaoTool\Qr
+ * @package Tool\MayouTool\Qr
  */
 class QrService
 {

+ 4 - 4
src/shanTaoTool/QrTool.php → src/QrTool.php

@@ -1,15 +1,15 @@
 <?php
 
 
-namespace Tool\ShanTaoTool;
+namespace Tool\MayouTool;
 
-use Tool\ShanTaoTool\Bean\Qr\CreateQrLogoImgServiceParamBean;
-use Tool\ShanTaoTool\Qr\QrService;
+use Tool\MayouTool\Bean\Qr\CreateQrLogoImgServiceParamBean;
+use Tool\MayouTool\Qr\QrService;
 
 /**
  * 二维码类
  * Class QrTool
- * @package Tool\ShanTaoTool
+ * @package Tool\MayouTool
  */
 class QrTool
 {

+ 3 - 3
src/shanTaoTool/SendEmail.php → src/SendEmail.php

@@ -1,13 +1,13 @@
 <?php
 
 
-namespace Tool\ShanTaoTool;
+namespace Tool\MayouTool;
 
 
 use PHPMailer\PHPMailer\PHPMailer;
 use PHPMailer\PHPMailer\SMTP;
-use Tool\ShanTaoTool\Bean\SendEmail\SendEmailByCustomeParamBean;
-use Tool\ShanTaoTool\Exception\SendEmailException;
+use Tool\MayouTool\Bean\SendEmail\SendEmailByCustomeParamBean;
+use Tool\MayouTool\Exception\SendEmailException;
 
 class SendEmail
 {

+ 2 - 2
src/shanTaoTool/Sms/QidianyunSms.php → src/Sms/QidianyunSms.php

@@ -1,10 +1,10 @@
 <?php
 
 
-namespace Tool\ShanTaoTool\Sms;
+namespace Tool\MayouTool\Sms;
 
 
-use Tool\ShanTaoTool\HttpCurl;
+use Tool\MayouTool\HttpCurl;
 
 class QidianyunSms
 {

+ 2 - 2
src/shanTaoTool/Sms/SanTiSms.php → src/Sms/SanTiSms.php

@@ -1,10 +1,10 @@
 <?php
 
 
-namespace Tool\ShanTaoTool\Sms;
+namespace Tool\MayouTool\Sms;
 
 
-use Tool\ShanTaoTool\HttpCurl;
+use Tool\MayouTool\HttpCurl;
 
 class SanTiSms
 {

+ 4 - 4
src/shanTaoTool/SmsTool.php → src/SmsTool.php

@@ -1,12 +1,12 @@
 <?php
 
 
-namespace Tool\ShanTaoTool;
+namespace Tool\MayouTool;
 
 
-use Tool\ShanTaoTool\Exception\SmsException;
-use Tool\ShanTaoTool\Sms\QidianyunSms;
-use Tool\ShanTaoTool\Sms\SanTiSms;
+use Tool\MayouTool\Exception\SmsException;
+use Tool\MayouTool\Sms\QidianyunSms;
+use Tool\MayouTool\Sms\SanTiSms;
 
 class SmsTool
 {

+ 3 - 3
src/shanTaoTool/UploadTool.php → src/UploadTool.php

@@ -1,19 +1,19 @@
 <?php
 
 
-namespace Tool\ShanTaoTool;
+namespace Tool\MayouTool;
 
 use Qiniu\Auth;
 use Qiniu\Config;
 use Qiniu\Storage\UploadManager;
 use Qiniu\Zone;
 use SplFileInfo;
-use Tool\ShanTaoTool\Exception\FileException;
+use Tool\MayouTool\Exception\FileException;
 
 /**
  * 上传工具类
  * Class UploadTool
- * @package Tool\ShanTaoTool
+ * @package Tool\MayouTool
  */
 class UploadTool
 {

+ 1 - 1
src/shanTaoTool/template/Ceshi.php → src/template/Ceshi.php

@@ -1,7 +1,7 @@
 <?php
 
 
-namespace Tool\ShanTaoTool\template;
+namespace Tool\MayouTool\template;
 
 
 class Ceshi