Browse Source

Merge branch 'wx-kw' into test

zqwang 1 năm trước cách đây
mục cha
commit
9aec3d0c8f
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      modules/WechatPlatform/Services/WechatMenuService.php

+ 2 - 2
modules/WechatPlatform/Services/WechatMenuService.php

@@ -97,7 +97,7 @@ class WechatMenuService extends BaseService
             // myLog('wx-meun')->info(['res' => $res]);
             $wxMenuId = getProp($res, 'menuid', "");
             $res = $app->menu->create($val->content, $matchRule);
-            myLog('wx-meun')->info(['res' => $res,'mid' => $wxMenuId]);
+            // myLog('wx-meun')->info(['res' => $res,'mid' => $wxMenuId]);
             if ($wxMenuId) {
                 WechatAccountMenuDetail::query()->where('id', $val->id)->update(['wx_menuid' => $wxMenuId]);
             }
@@ -332,7 +332,7 @@ class WechatMenuService extends BaseService
             $sql->where('title', "like", "%" . $param['title'] . "%");
         }
         if (getProp($param, 'type')) {
-            $sql->where('user_id', $param['type']);
+            $sql->where('type', $param['type']);
         }
         if (getProp($param, 'miniprogram_id')) {
             $sql->where('miniprogram_id', $param['miniprogram_id']);