|
|
@@ -74,25 +74,15 @@ class TestController extends BaseController
|
|
|
|
|
|
public function actionOn()
|
|
|
{
|
|
|
- echo "<pre>";
|
|
|
- $cacheKey = 'test';
|
|
|
- Yii::$app->redis->executeCommand('HSET', [$cacheKey, 'shish', 1]);
|
|
|
- echo Yii::$app->redis->executeCommand('HGET', [$cacheKey, 'shish']);
|
|
|
-
|
|
|
- $return = Yii::$app->redis->executeCommand('HEXISTS', [$cacheKey, 'shish']);
|
|
|
- var_dump($return);
|
|
|
-
|
|
|
- Yii::$app->redis->executeCommand('HSET', [$cacheKey, 'sofashi', 2]);
|
|
|
-
|
|
|
- Yii::$app->redis->executeCommand('HSET', [$cacheKey, 'lgl', 3]);
|
|
|
-
|
|
|
- $arr = Yii::$app->redis->executeCommand('HKEYS', [$cacheKey]);
|
|
|
- print_r($arr);
|
|
|
-
|
|
|
- Yii::$app->redis->executeCommand('HDEL', [$cacheKey, 'lgl']);
|
|
|
-
|
|
|
- $arr = Yii::$app->redis->executeCommand('HKEYS', [$cacheKey]);
|
|
|
- print_r($arr);
|
|
|
+ Yii::$app->params['errorReport'] = 1;
|
|
|
+ Yii::info('111111111111111222222222222');
|
|
|
+ try {
|
|
|
+ util::fail('oooooo');
|
|
|
+ } catch (\Exception $exception) {
|
|
|
+ $errMsg = $exception->getMessage();
|
|
|
+ noticeUtil::push('注意:' . $errMsg, '15280215347');
|
|
|
+ echo $errMsg;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
public function actionIn()
|