瀏覽代碼

注册编辑小问题

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;