12345678910111213141516171819202122232425262728293031323334353637383940 |
- <?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\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 {
- public function index()
- {
- Hook::add('test','app\\listener\\order\\OrderListener');
- $result = Hook::exec(['app\\listener\\order\\OrderListener','test11'], ['user_id'=>97]);
- var_dump($result,1199);
- }
- 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));
- }
- }
|