Qc.php 953 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. namespace app\api\controller;
  3. use app\common\model\LabelMessage;
  4. use app\common\model\LevelOrder as LOM;
  5. use app\common\model\UserSearch;
  6. use app\common\model\VideoUrl;
  7. use app\common\service\OrderCallback;
  8. use library\tools\Data;
  9. use think\cache\driver\Redis;
  10. use think\Db;
  11. use Easemob\Auth;
  12. use Easemob\User;
  13. use think\facade\Hook;
  14. class Qc extends Base {
  15. public function index()
  16. {
  17. Hook::add('test','app\\listener\\order\\OrderListener');
  18. $result = Hook::exec(['app\\listener\\order\\OrderListener','test11'], ['user_id'=>97]);
  19. var_dump($result,1199);
  20. }
  21. public function index_match()
  22. {
  23. $password = "123456879_/";
  24. //密码必须包含大小写字母/数字/符号任意两者组合
  25. $regStr = "/^(?![0-9]+$)(?![a-z]+$)(?![A-Z]+$)(?!([^(0-9a-zA-Z)]|[\(\)])+$)([^(0-9a-zA-Z)]|[\(\)]|[a-z]|[A-Z]|[0-9]){6,16}$/";
  26. var_dump(preg_match($regStr, $password));
  27. }
  28. }