Просмотр исходного кода

Merge branch 'dev' of http://git.huaml.com/zhh/huahuibao into dev

shish 2 месяцев назад
Родитель
Сommit
46f63690fa
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      app-hd/controllers/CustomController.php

+ 1 - 1
app-hd/controllers/CustomController.php

@@ -83,7 +83,7 @@ class CustomController extends BaseController
         }
         $birthdayTime = strtotime($birthday);
 
-        if ($user->birthdaySet == 1) {
+        if (getenv('YII_ENV') != 'dev' && $user->birthdaySet == 1) {
             util::fail('客户已填写,不能修改');
         }
         //用户自己没有设置过生日,直接改