فهرست منبع

注册编辑小问题

sugangqiang 2 سال پیش
والد
کامیت
4848b9a721
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      app/common/controller/Auth.php

+ 2 - 2
app/common/controller/Auth.php

@@ -404,8 +404,8 @@ class Auth extends BaseController {
                 }
                 $data['id'] = $ep->id;
                 if ($ep->special == 0) {
-                    if ($ep->type == 1) {
-                        if ($ep->agencyType == 1) {
+                    if ($data["type"] == 1) {
+                        if ($data["agencyType"] == 1) {
                             validate(\app\common\validate\Enterprise::class)->batch(true)->scene('change')->check($data);
                             if (!$data["domainImg"] && !$ep->domainImg) {
                                 $response_object->code = 500;