@@ -52,7 +52,7 @@ class Controller extends \think\Controller
*/
private function checkWxapp()
{
- $wxapp = WxappModel::detail($this->wxapp_id);
+ $wxapp = $this->wxapp_id? WxappModel::detail($this->wxapp_id) : [];
if (empty($wxapp)) {
throw new BaseException(['msg' => '当前小程序信息不存在']);
}