ApiTestCom.Class.php 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <?php
  2. /**
  3. * 测试
  4. * Created by PhpStorm.
  5. * Date=> 2020/05/16
  6. * Time=> 11=>31
  7. */
  8. namespace JinDouYun\Controller\Common;
  9. use JinDouYun\Controller\BaseController;
  10. use Util\Common\PartnerTools;
  11. use Util\Common\AgentTools;
  12. class ApiTestCom extends BaseController
  13. {
  14. public function __construct($isCheckAcl = true, $isMustLogin = true)
  15. {
  16. parent::__construct($isCheckAcl, $isMustLogin);
  17. }
  18. public function tool()
  19. {
  20. echo "企业:".$this->onlineEnterpriseId.PHP_EOL;
  21. // $to = new PartnerTools($this->onlineEnterpriseId);
  22. $to = new AgentTools($this->onlineEnterpriseId);
  23. //缓存测试
  24. // echo $to->cacheTest();
  25. //绑定下级测试
  26. // var_dump($to->setPushCustomer(24,25));
  27. //添加任务测试
  28. // var_dump($to->addTask("78",$this->onlineEnterpriseId));
  29. // var_dump($to->addTask("87",$this->onlineEnterpriseId));
  30. // var_dump($to->addTask("88",$this->onlineEnterpriseId));
  31. //执行任务测试
  32. var_dump($to->runTaskNew());
  33. //子级查询测试
  34. // var_dump($to->getApiChildrenTree(17));
  35. }
  36. }