| 12345678910111213141516171819202122232425262728 |
- <?php
- namespace console\controllers;
- use common\components\noticeUtil;
- use yii\console\Controller;
- use Yii;
- class BookController extends Controller
- {
- public function actionAssignSeat()
- {
- ini_set('memory_limit', '2045M');
- set_time_limit(0);
- $cacheKey = 'assign_seat_main_book_sn_list';
- $num = Yii::$app->redis->executeCommand('SCARD', [$cacheKey]);
- if ($num <= 0) {
- return true;
- }
- if ($num > 20) {
- noticeUtil::push("assign seat all 已经超过20家了,请及时解决", '15280215347');
- }
- $eleList = Yii::$app->redis->executeCommand('SMEMBERS', [$cacheKey]);
- print_r($eleList);
- }
- }
|