test5.php 848 B

123456789101112131415161718192021222324252627
  1. <?
  2. use Doctrine\Common\Collections\ArrayCollection;
  3. use Doctrine\Common\Collections\Collection;
  4. use Doctrine\Common\Collections\Criteria;
  5. require_once "doctrine/bootstrap.php";
  6. require_once "functions.php";
  7. //require_once "server.php";
  8. require_once "auth.php";
  9. require_once 'CheckPoint.php';
  10. require_once 'CheckPointType.php';
  11. use \CheckPoints\CheckPoint;
  12. require_once 'api/vendor/autoload.php';
  13. require_once 'api/vendor/yiisoft/yii2/Yii.php';
  14. $config = require_once 'api/config/web.php';
  15. (new yii\web\Application($config));
  16. $id = $_REQUEST["id"];
  17. $acc = Account::Find($id);
  18. $tagid = GetVagrantTagID($id);
  19. echo $tagid;
  20. VagrantRequest($acc->id, $tagid, $acc->name, 1,1);
  21. //EmployeeTag attach/detach method Error: SMoPPEmployeeTagService AddEvent Error: An exception occurred while receiving a message from the server.