wangbiaoyan 3 months ago
parent
commit
b7693bfa6c
52 changed files with 109 additions and 110 deletions
  1. 1 2
      demo.php
  2. 3 3
      src/BaseAuth/AdminAuth.php
  3. 2 2
      src/Bean/BaseAuth/AddUserParamBean.php
  4. 1 1
      src/Bean/BaseBean.php
  5. 1 1
      src/Bean/BaseBeanV1.php
  6. 2 2
      src/Bean/Crm/TaobaoBatchSendParamBean.php
  7. 2 2
      src/Bean/ElasticSearch/CreateLogDocParamBean.php
  8. 2 2
      src/Bean/ElasticSearch/GetLogDocParamBean.php
  9. 2 2
      src/Bean/Pay/GetCodePayUrlParamBean.php
  10. 2 2
      src/Bean/Pdd/Ddk/GoodsDetailParamBean.php
  11. 2 2
      src/Bean/Pdd/Ddk/GoodsPromotionUrlGenerateParamBean.php
  12. 2 2
      src/Bean/Pdd/Ddk/GoodsRecommendGetParamBean.php
  13. 2 2
      src/Bean/Pdd/Ddk/GoodsSearchParamBean.php
  14. 2 2
      src/Bean/Pdd/Ddk/OrderListRangeGetParamBean.php
  15. 1 1
      src/Bean/Pdd/Ddk/PidStatusEnum.php
  16. 2 2
      src/Bean/Pdd/Ddk/ResourceUrlGenParamBean.php
  17. 2 2
      src/Bean/Qr/CreateQrLogoImgServiceParamBean.php
  18. 2 2
      src/Bean/SendEmail/SendEmailByCustomeParamBean.php
  19. 1 1
      src/Captcha/Src/Captcha.php
  20. 1 1
      src/Captcha/Src/Image.php
  21. 2 2
      src/CaptchaTool.php
  22. 4 4
      src/Crm/Crm.php
  23. 3 3
      src/CrmTool.php
  24. 3 3
      src/ElasticSearch/ElasticSerach.php
  25. 1 1
      src/Enum/Pdd/Ddk/DdkResourceTypeEnum.php
  26. 5 5
      src/EsTool.php
  27. 1 1
      src/Excel/Export.php
  28. 3 3
      src/ExcelTool.php
  29. 1 1
      src/Exception/AuthException.php
  30. 1 1
      src/Exception/CrmException.php
  31. 1 1
      src/Exception/ElasticSearchException.php
  32. 1 1
      src/Exception/FileException.php
  33. 1 1
      src/Exception/HttpCustomeException.php
  34. 1 1
      src/Exception/PayException.php
  35. 1 1
      src/Exception/QiWeiException.php
  36. 1 1
      src/Exception/SendEmailException.php
  37. 1 1
      src/Exception/SmsException.php
  38. 2 2
      src/HttpCurl.php
  39. 1 1
      src/Mq/MqService.php
  40. 2 2
      src/MqTool.php
  41. 4 4
      src/Pay/PayService.php
  42. 4 4
      src/PayTool.php
  43. 8 8
      src/Pdd/Ddk/DdkDaogouService.php
  44. 3 3
      src/QiWeiTool.php
  45. 2 2
      src/Qr/QrService.php
  46. 3 3
      src/QrTool.php
  47. 3 3
      src/SendEmail.php
  48. 2 2
      src/Sms/QidianyunSms.php
  49. 2 2
      src/Sms/SanTiSms.php
  50. 4 4
      src/SmsTool.php
  51. 2 2
      src/UploadTool.php
  52. 1 1
      src/template/Ceshi.php

+ 1 - 2
demo.php

@@ -1,7 +1,6 @@
 <?php
 
-use Tool\ShanTaoTool\Bean\ElasticSearch\CreateLogDocParamBean;
-use Tool\ShanTaoTool\EsTool;
+use Tool\Mayou\EsTool;
 
 require_once "./vendor/autoload.php";
 

+ 3 - 3
src/BaseAuth/AdminAuth.php

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

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

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

+ 1 - 1
src/Bean/BaseBean.php

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

+ 1 - 1
src/Bean/BaseBeanV1.php

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

+ 1 - 1
src/Bean/Pdd/Ddk/PidStatusEnum.php

@@ -1,7 +1,7 @@
 <?php
 
 
-namespace Tool\Bean\Pdd\Ddk;
+namespace Tool\MayouTool\Bean\Pdd\Ddk;
 
 
 /**

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

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

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

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

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

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

+ 1 - 1
src/Captcha/Src/Captcha.php

@@ -1,6 +1,6 @@
 <?php
 
-namespace Tool\Captcha\Src;
+namespace Tool\MayouTool\Captcha\Src;
 
 
 class Captcha

+ 1 - 1
src/Captcha/Src/Image.php

@@ -1,6 +1,6 @@
 <?php
 
-namespace Tool\Captcha\Src;
+namespace Tool\MayouTool\Captcha\Src;
 
 
 class Image

+ 2 - 2
src/CaptchaTool.php

@@ -1,8 +1,8 @@
 <?php
 
-namespace Tool;
+namespace Tool\MayouTool;
 
-use Tool\Captcha\Src\Captcha;
+use Tool\MayouTool\Captcha\Src\Captcha;
 
 class CaptchaTool
 {

+ 4 - 4
src/Crm/Crm.php

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

+ 3 - 3
src/CrmTool.php

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

+ 3 - 3
src/ElasticSearch/ElasticSerach.php

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

+ 1 - 1
src/Enum/Pdd/Ddk/DdkResourceTypeEnum.php

@@ -1,7 +1,7 @@
 <?php
 
 
-namespace Tool\Enum\Pdd\Ddk;
+namespace Tool\MayouTool\Enum\Pdd\Ddk;
 
 
 /**

+ 5 - 5
src/EsTool.php

@@ -1,13 +1,13 @@
 <?php
 
 
-namespace Tool;
+namespace Tool\MayouTool;
 
 
-use Tool\Bean\ElasticSearch\CreateLogDocParamBean;
-use Tool\Bean\ElasticSearch\GetLogDocParamBean;
-use Tool\ElasticSearch\ElasticSerach;
-use Tool\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/Excel/Export.php

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

+ 3 - 3
src/ExcelTool.php

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

+ 1 - 1
src/Exception/AuthException.php

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

+ 1 - 1
src/Exception/CrmException.php

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

+ 1 - 1
src/Exception/ElasticSearchException.php

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

+ 1 - 1
src/Exception/FileException.php

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

+ 1 - 1
src/Exception/HttpCustomeException.php

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

+ 1 - 1
src/Exception/PayException.php

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

+ 1 - 1
src/Exception/QiWeiException.php

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

+ 1 - 1
src/Exception/SendEmailException.php

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

+ 1 - 1
src/Exception/SmsException.php

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

+ 2 - 2
src/HttpCurl.php

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

+ 1 - 1
src/Mq/MqService.php

@@ -1,7 +1,7 @@
 <?php
 
 
-namespace Tool\Mq;
+namespace Tool\MayouTool\Mq;
 
 use PhpAmqpLib\Connection\AMQPStreamConnection;
 use PhpAmqpLib\Message\AMQPMessage;

+ 2 - 2
src/MqTool.php

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

+ 4 - 4
src/Pay/PayService.php

@@ -1,11 +1,11 @@
 <?php
 
 
-namespace Tool\Pay;
+namespace Tool\MayouTool\Pay;
 
-use Tool\Bean\Pay\GetCodePayUrlParamBean;
-use Tool\Exception\PayException;
-use Tool\HttpCurl;
+use Tool\MayouTool\Bean\Pay\GetCodePayUrlParamBean;
+use Tool\MayouTool\Exception\PayException;
+use Tool\MayouTool\HttpCurl;
 
 /**
  * 支付服务类

+ 4 - 4
src/PayTool.php

@@ -1,11 +1,11 @@
 <?php
 
 
-namespace Tool;
+namespace Tool\MayouTool;
 
-use Tool\Bean\Pay\GetCodePayUrlParamBean;
-use Tool\Exception\PayException;
-use Tool\Pay\PayService;
+use Tool\MayouTool\Bean\Pay\GetCodePayUrlParamBean;
+use Tool\MayouTool\Exception\PayException;
+use Tool\MayouTool\Pay\PayService;
 
 /**
  * 支付工具类

+ 8 - 8
src/Pdd/Ddk/DdkDaogouService.php

@@ -1,16 +1,16 @@
 <?php
 
 
-namespace Tool\Pdd\Ddk;
+namespace Tool\MayouTool\Pdd\Ddk;
 
 
-use Tool\Bean\Pdd\Ddk\GoodsDetailParamBean;
-use Tool\Bean\Pdd\Ddk\GoodsPromotionUrlGenerateParamBean;
-use Tool\Bean\Pdd\Ddk\GoodsRecommendGetParamBean;
-use Tool\Bean\Pdd\Ddk\GoodsSearchParamBean;
-use Tool\Bean\Pdd\Ddk\OrderListRangeGetParamBean;
-use Tool\Bean\Pdd\Ddk\ResourceUrlGenParamBean;
-use Tool\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;
 
 /**
  * 多多客导购服务类

+ 3 - 3
src/QiWeiTool.php

@@ -1,10 +1,10 @@
 <?php
 
 
-namespace Tool;
+namespace Tool\MayouTool;
 
-use Tool\Exception\HttpCustomeException;
-use Tool\Exception\QiWeiException;
+use Tool\MayouTool\Exception\HttpCustomeException;
+use Tool\MayouTool\Exception\QiWeiException;
 
 /**
  * 企业微信工具

+ 2 - 2
src/Qr/QrService.php

@@ -1,11 +1,11 @@
 <?php
 
 
-namespace Tool\Qr;
+namespace Tool\MayouTool\Qr;
 
 use lrq\qrcode\QrcodeMain;
 use tekintian\TekinQR;
-use Tool\Bean\Qr\CreateQrLogoImgServiceParamBean;
+use Tool\MayouTool\Bean\Qr\CreateQrLogoImgServiceParamBean;
 use Zxing\QrReader;
 
 /**

+ 3 - 3
src/QrTool.php

@@ -1,10 +1,10 @@
 <?php
 
 
-namespace Tool;
+namespace Tool\MayouTool;
 
-use Tool\Bean\Qr\CreateQrLogoImgServiceParamBean;
-use Tool\Qr\QrService;
+use Tool\MayouTool\Bean\Qr\CreateQrLogoImgServiceParamBean;
+use Tool\MayouTool\Qr\QrService;
 
 /**
  * 二维码类

+ 3 - 3
src/SendEmail.php

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

+ 2 - 2
src/Sms/QidianyunSms.php

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

+ 2 - 2
src/Sms/SanTiSms.php

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

+ 4 - 4
src/SmsTool.php

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

+ 2 - 2
src/UploadTool.php

@@ -1,14 +1,14 @@
 <?php
 
 
-namespace Tool;
+namespace Tool\MayouTool;
 
 use Qiniu\Auth;
 use Qiniu\Config;
 use Qiniu\Storage\UploadManager;
 use Qiniu\Zone;
 use SplFileInfo;
-use Tool\Exception\FileException;
+use Tool\MayouTool\Exception\FileException;
 
 /**
  * 上传工具类

+ 1 - 1
src/template/Ceshi.php

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