소스 검색

更新模板消息接口

刘忠健 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;