刘忠健 пре 2 година
родитељ
комит
ed39ae0513
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      api/app/common/model/WechatConfig.php

+ 1 - 1
api/app/common/model/WechatConfig.php

@@ -17,7 +17,7 @@ class WechatConfig extends Base
     public static function getEasyWechatConfig($key)
     {
         $where = [];
-        $where[] = ["id|app_id|app_code", "=", $key];
+        $where[] = ["app_id|app_code", "=", $key];
         $wechatConfig = self::where($where)->find();
         if (!$wechatConfig) {
             return false;