You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
679 B
PHP
26 lines
679 B
PHP
<?php
|
|
|
|
use Exception\CheckClientException;
|
|
|
|
class ErrorTool {
|
|
public static function buildOrderSnError($orderSn, $reason, $otherData = []) {
|
|
return array_merge([
|
|
'orderSn' => $orderSn,
|
|
'reason' => $reason,
|
|
], $otherData);
|
|
}
|
|
|
|
public static function buildOrderIdError($orderId, $reason, $otherData = []) {
|
|
return array_merge([
|
|
'orderId' => $orderId,
|
|
'reason' => $reason,
|
|
], $otherData);
|
|
}
|
|
|
|
public static function buildRowError($row, $reason, $otherData = []) {
|
|
return array_merge([
|
|
'row' => $row,
|
|
'reason' => $reason,
|
|
], $otherData);
|
|
}
|
|
} |