123456789101112131415161718192021222324252627282930313233343536373839404142 |
- <?php
- namespace app\api\controller;
- use app\common\model\LabelMessage;
- use app\common\model\LevelOrder as LOM;
- use app\common\model\UserSearch;
- use app\common\model\VideoUrl;
- use app\common\service\Elasticsearch;
- use app\common\service\OrderCallback;
- use library\tools\Data;
- use think\cache\driver\Redis;
- use think\Db;
- use Easemob\Auth;
- use Easemob\User;
- use think\facade\Hook;
- class Qc extends Base {
- function index ()
- {
- $list = Elasticsearch::getList('product_info');
- $this->success('ok',$list);
- }
- public function index_match()
- {
- $password = "123456879_/";
- //密码必须包含大小写字母/数字/符号任意两者组合
- $regStr = "/^(?![0-9]+$)(?![a-z]+$)(?![A-Z]+$)(?!([^(0-9a-zA-Z)]|[\(\)])+$)([^(0-9a-zA-Z)]|[\(\)]|[a-z]|[A-Z]|[0-9]){6,16}$/";
- var_dump(preg_match($regStr, $password));
- }
- }
|