sugangqiang 2 năm trước cách đây
mục cha
commit
ec0272aa67
1 tập tin đã thay đổi với 16 bổ sung16 xóa
  1. 16 16
      app/enterprise/controller/Api.php

+ 16 - 16
app/enterprise/controller/Api.php

@@ -339,58 +339,58 @@ class Api extends EnterpriseController {
                     }
                 }
                 if (!$record["newImgurl"]) {
-                    if (strtotime($ecr["createTime"]) < strtotime($time)) {
+                    if (strtotime($record["createTime"]) < strtotime($this->compatible_time)) {
                         $where = [];
-                        $where[] = ["mainId", "=", $id];
+                        $where[] = ["mainId", "=", $record_id];
                         $where[] = ["api", "=", "businessLicense"];
                         $where[] = ["active", "=", 1];
                         $_uploadFile = TalentCommonFile::alias("tcf")->leftJoin("new_currency_filetype ft", "ft.id=tcf.typeId")->where($where)->order("tcf.createTime desc")->find();
                         if ($_uploadFile) {
-                            $ecr["newImgurl"] = $_uploadFile["url"];
+                            $record["newImgurl"] = $_uploadFile["url"];
                         } else {
-                            $ecr["newImgurl"] = $ep["imgurl"];
+                            $record["newImgurl"] = $ep["imgurl"];
                         }
                     }
                 }
                 if (!$record["newBankImg"]) {
-                    if (strtotime($ecr["createTime"]) < strtotime($time)) {
+                    if (strtotime($record["createTime"]) < strtotime($this->compatible_time)) {
                         $where = [];
-                        $where[] = ["mainId", "=", $id];
+                        $where[] = ["mainId", "=", $record_id];
                         $where[] = ["api", "=", "businessBank"];
                         $where[] = ["active", "=", 1];
                         $_uploadFile = TalentCommonFile::alias("tcf")->leftJoin("new_currency_filetype ft", "ft.id=tcf.typeId")->where($where)->order("tcf.createTime desc")->find();
                         if ($_uploadFile) {
-                            $ecr["newBankImg"] = $_uploadFile["url"];
+                            $record["newBankImg"] = $_uploadFile["url"];
                         } else {
-                            $ecr["newBankImg"] = $ep["bankImg"];
+                            $record["newBankImg"] = $ep["bankImg"];
                         }
                     }
                 }
                 if (!$record["newDomainImg"]) {
-                    if (strtotime($ecr["createTime"]) < strtotime($time)) {
+                    if (strtotime($record["createTime"]) < strtotime($this->compatible_time)) {
                         $where = [];
-                        $where[] = ["mainId", "=", $id];
+                        $where[] = ["mainId", "=", $record_id];
                         $where[] = ["api", "=", "businessDomain"];
                         $where[] = ["active", "=", 1];
                         $_uploadFile = TalentCommonFile::alias("tcf")->leftJoin("new_currency_filetype ft", "ft.id=tcf.typeId")->where($where)->order("tcf.createTime desc")->find();
                         if ($_uploadFile) {
-                            $ecr["newDomainImg"] = $_uploadFile["url"];
+                            $record["newDomainImg"] = $_uploadFile["url"];
                         } else {
-                            $ecr["newDomainImg"] = $ep["domainImg"];
+                            $record["newDomainImg"] = $ep["domainImg"];
                         }
                     }
                 }
                 if (!$record["newBeian"]) {
-                    if (strtotime($ecr["createTime"]) < strtotime($time)) {
+                    if (strtotime($record["createTime"]) < strtotime($this->compatible_time)) {
                         $where = [];
-                        $where[] = ["mainId", "=", $id];
+                        $where[] = ["mainId", "=", $record_id];
                         $where[] = ["api", "=", "businessBeian"];
                         $where[] = ["active", "=", 1];
                         $_uploadFile = TalentCommonFile::alias("tcf")->leftJoin("new_currency_filetype ft", "ft.id=tcf.typeId")->where($where)->order("tcf.createTime desc")->find();
                         if ($_uploadFile) {
-                            $ecr["newBeian"] = $_uploadFile["url"];
+                            $record["newBeian"] = $_uploadFile["url"];
                         } else {
-                            $ecr["newBeian"] = $ep["beian"];
+                            $record["newBeian"] = $ep["beian"];
                         }
                     }
                 }