Browse Source

测试环境允许修改生日

shizhongqi 2 months ago
parent
commit
18f900f23b
1 changed files with 1 additions and 1 deletions
  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('客户已填写,不能修改');
         }
         //用户自己没有设置过生日,直接改