Browse Source

api成员添加的bug

ChenWuJie 4 years ago
parent
commit
509d598a25
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/Models/Notification.php

+ 1 - 1
app/Models/Notification.php

xqd
@@ -166,7 +166,7 @@ class Notification extends BaseModel
         $project = Project::find($project_id);
         if($project && isset($project['user_id'])) {
             $user = User::find($project['user_id']);
-            if($user) {
+            if($user&&$user['open_id']) {
                 $official_app = app('wechat.mini_program.default');
                 $title = $project->active == 1 ? '您申请的项目已经通过审批,请及时查看!' : '您申请的项目未通过申请,请重新提交!';
                 $official_app->uniform_message->send([