asJsonResponse(true)->get(); if (0 == $result['errcode']) { try { if ($result['openid'] && !FpdxMiniprogramIntoQueueModel::where('openid', $result['openid'])->exists()) { WelcomeJob::dispatch($result['openid'])->delay(Carbon::now()->addHours(1)); FpdxMiniprogramIntoQueueModel::create(['openid' => $result['openid'], 'created_at' => time()]); } } catch (\Exception $exception) { } return $result; } else { throw new AlertException($result['errmsg'], $result['errcode']); } } }