提交
This commit is contained in:
@@ -91,6 +91,23 @@ class Evus extends Base
|
||||
], '提交成功');
|
||||
}
|
||||
|
||||
public function myApplications()
|
||||
{
|
||||
$userId = $this->requireLogin();
|
||||
if (!is_int($userId)) {
|
||||
return $userId;
|
||||
}
|
||||
|
||||
$url = rtrim((string)config('app.order_url'), '/') . '/myEvusApplications';
|
||||
$response = Httpcurl::request($url, 'post', ['user_id' => $userId]);
|
||||
$result = $this->decodeResponse($response, 'miniapi evus applications');
|
||||
if (empty($result) || intval($result['code'] ?? 0) !== 1) {
|
||||
return $this->fail((string)($result['msg'] ?? '服务异常,请稍后重试'));
|
||||
}
|
||||
|
||||
return $this->ok((array)($result['data'] ?? []));
|
||||
}
|
||||
|
||||
private function buildOrderPayload(array $data, string $orderSn, array $product, int $userId): array
|
||||
{
|
||||
$payload = $data;
|
||||
|
||||
Reference in New Issue
Block a user