|
@@ -88,13 +88,13 @@ class WechatMenuService extends BaseService
|
|
|
"client_platform_type" => $val->type == "ios" ? "1" : "2",
|
|
|
];
|
|
|
$res = $app->menu->create($val->content, $matchRule);
|
|
|
- myLog('wx-meun')->info(['res' => $res]);
|
|
|
+
|
|
|
|
|
|
$errcode = getProp($res,'errcode',"");
|
|
|
if (intval($errcode) == 65303){
|
|
|
$res = $app->menu->create($val->content);
|
|
|
}
|
|
|
- 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]);
|
|
@@ -312,7 +312,7 @@ class WechatMenuService extends BaseService
|
|
|
}
|
|
|
foreach ($list as $val){
|
|
|
$val->wechat_accounts = WechatAccountMenuDetail::query()->where(
|
|
|
- ['subscribe_id' => $val->id,
|
|
|
+ ['menu_id' => $val->id,
|
|
|
'status' => 1
|
|
|
])->select('wechat_authorization_info_id as id',"appid",'nick_name')->get();
|
|
|
}
|
|
@@ -338,7 +338,7 @@ class WechatMenuService extends BaseService
|
|
|
$ids = WechatAccountMenuDetail::query()->where([
|
|
|
'wechat_authorization_info_id' => $param['wechat_authorization_info_id'],
|
|
|
'status' => 1,
|
|
|
- ])->pluck('weacht_keyworld_id')->toArray();
|
|
|
+ ])->pluck('menu_id')->toArray();
|
|
|
}
|
|
|
return $sql;
|
|
|
}
|