Parcourir la source

更新模板消息接口

刘忠健 il y a 2 ans
Parent
commit
ed39ae0513
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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;