|
@@ -137,7 +137,7 @@ class WechatKeywordsService extends BaseService
|
|
$list = DB::table('wechat_authorization_infos')
|
|
$list = DB::table('wechat_authorization_infos')
|
|
->where('user_id', $userId)
|
|
->where('user_id', $userId)
|
|
->select('id', 'nick_name', 'is_enabled')->get();
|
|
->select('id', 'nick_name', 'is_enabled')->get();
|
|
- $authList = WechatAccountKeywordLog::where('weacht_keyworld_id', $id)->get();
|
|
|
|
|
|
+ $authList = WechatAccountKeywordLog::where('weacht_keyworld_id', $id)->where('status' , 1)->distinct('appid')->get();
|
|
if (!$list->isEmpty()) {
|
|
if (!$list->isEmpty()) {
|
|
foreach ($list as $val) {
|
|
foreach ($list as $val) {
|
|
$val->is_auth = 0;
|
|
$val->is_auth = 0;
|