bzzear
- bzzear 2018-10-26 已签到连续签到5天,获得了20个金钱
- bzzear 2018-10-25 已签到连续签到4天,获得了20个金钱
- bzzear 2018-10-24 已签到连续签到3天,获得了15个金钱
- bzzear 发表了说说中午吃早餐
在console或者common中config/main.php添加下面配置
return [ 'vendorPath' => dirname(dirname(__DIR__)) . '/vendor', 'components' => [ 'redis' => [ 'class' => 'yii\redis\Connection', 'hostname' => '127.0.0.1', 'port' => 6379, 'database' => 0, ], 'queue' => [ 'class' => 'yii\queue\redis\Queue', 'redis' => 'redis', // Redis connection component or its config 'channel' => 'queue', // Queue channel key 'as log' => 'yii\queue\LogBehavior', 'ttr' => 10 * 60, // Max time for anything job handling 'attempts' => 3, // Max number of attempts 选项设置了最大的尝试次数 ], ], ];
- bzzear 2018-10-23 已签到连续签到2天,获得了10个金钱
用这个表生成的model直接调用updateAll,简单,快捷,方便。
TModel::updateAll(['status' => -1],['in','id',$idList]);$transaction = Yii::$app->db->beginTransaction(); //先删除关联的商品表 try { TModel::updateAll(['status' => -1],['in','id',$idList]); $transaction->commit(); } catch (\Exception $e) { $transaction->rollBack(); exit($e->__toString()); } exit('success')
- bzzear 发表了说说找舰长给你审核