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