|
|
|
@ -285,6 +285,29 @@ class InvoiceIssuance extends Base |
|
|
|
return $this->buildSuccess(['qrCodeImage' => $qrCodeImage]); |
|
|
|
} |
|
|
|
|
|
|
|
public function getErrorInfo() |
|
|
|
{ |
|
|
|
try { |
|
|
|
// 验证 |
|
|
|
$id = $this->request->get('id', ''); |
|
|
|
if (empty($id)) { |
|
|
|
throw new \Exception('缺少必传参数'); |
|
|
|
} |
|
|
|
$status = InvoiceIssuanceModel::where('id', $id)->value('status'); |
|
|
|
if ($status != 2) { |
|
|
|
throw new \Exception('失败原因获取失败'); |
|
|
|
} |
|
|
|
$ycms = InvoiceIssuanceData::where(['invoice_issuance_id' => $id, 'status' => 1])->value('ycms'); |
|
|
|
if (!$ycms) { |
|
|
|
throw new \Exception('暂无失败原因'); |
|
|
|
} |
|
|
|
|
|
|
|
return $this->buildSuccess(['content' => $ycms]); |
|
|
|
} catch (\Exception $e) { |
|
|
|
return $this->buildFailed(ReturnCode::NOT_EXISTS,$e->getMessage()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
public function downFile() |
|
|
|
{ |
|
|
|
try { |
|
|
|
|