Skip to content

Commit

Permalink
修正返回数据格式
Browse files Browse the repository at this point in the history
  • Loading branch information
asundust committed Feb 14, 2021
1 parent ee8bd48 commit b29503c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Http/Controllers/WechatWorkPushHandleController.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,7 @@ public function push($secret, Request $request): array
'secret' => $config->secret,
];
}
$result = $this->send($config, $user->name, $title, $content);

return ['code' => 0, 'message' => 'success', 'data' => $result];
return $this->send($config, $user->name, $title, $content);
}

return ['code' => 1, 'message' => 'secret验证失败'];
Expand Down

0 comments on commit b29503c

Please sign in to comment.