Browse Source

更新模板消息接口

刘忠健 2 years ago
parent
commit
ed39ae0513
1 changed files with 1 additions and 1 deletions
  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;