zhoupenghui
- zhoupenghui 回答了问题 Yii2.0怎么设置时区?
在config
文件夹下,main.php 中,return [ 'charset' => 'utf-8', 'language' => 'zh-CN', 'timeZone' => 'Asia/Shanghai', 'components' => [ 'cache' => [ 'class' => 'yii\caching\FileCache' ], 'formatter' => [ 'dateFormat' => 'yyyy-MM-dd', 'timeFormat' => 'HH:mm:ss', 'datetimeFormat' => 'yyyy-MM-dd HH:mm:ss' ] ] ];
- zhoupenghui 2016-11-28 已签到连续签到1天,获得了5个金钱
直接把like改为 = ,就行了吧
$error = []; if ($model->hasErrors()) { $tmp = $model->getErrors(); // 获取失败信息 foreach ($tmp as $rows) { foreach ($rows as $row) { $error[] = $row; } } } return json_encode(implode('<br>', $error));
- zhoupenghui 2016-11-16 已签到连续签到2天,获得了10个金钱
- zhoupenghui 2016-11-15 已签到连续签到1天,获得了5个金钱
- zhoupenghui 2016-11-11 已签到连续签到2天,获得了10个金钱
- zhoupenghui 2016-11-10 已签到连续签到1天,获得了5个金钱
你3码合一没有?
- zhoupenghui 2016-09-21 已签到连续签到2天,获得了10个金钱