Qc.php 893 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  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\Elasticsearch;
  8. use app\common\service\OrderCallback;
  9. use library\tools\Data;
  10. use think\cache\driver\Redis;
  11. use think\Db;
  12. use Easemob\Auth;
  13. use Easemob\User;
  14. use think\facade\Hook;
  15. class Qc extends Base {
  16. function index ()
  17. {
  18. $list = Elasticsearch::getList('product_info');
  19. $this->success('ok',$list);
  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. }