@@ -30,7 +30,7 @@ class Controller extends BaseController
$this->middleware('auth:api', [
'except' => [
'upload', 'getCode', 'login', 'wechatLogin', 'alipayNotify', 'wechatpayNotify',
- 'download', 'test'
+ 'download', 'test',
]
]);
@@ -256,7 +256,6 @@ class MyController extends Controller
{
$user = $this->getUser();
$data = CommentInfoModel::where('to_user_id',$user->id)->orderBy('id','desc')->get(); //user_id
-
foreach ($data as $item){ //访问接口 标记已读
$item->update(['is_read'=>0]);
$info = InteractionInfo::find($item->interaction_id);