Merge pull request '优化' (#566) from feature/ts_zxj into master

Reviewed-on: http://8.136.139.249:3000/wmtx/platform/pulls/566
master
廖金灵 3 years ago
commit fae94ffc3a

@ -196,14 +196,14 @@ class XlqyClient
return $this->getCommonResult($result, 200);
}
private function generateOrderNumber($order, $index = 0)
protected function generateOrderNumber($order, $index = 0)
{
$length = 8 - strlen(strval($order['id']));
$indexLength = 3 - strlen(strval($index));
return date('Ymd') . str_repeat('0', $length) . $order['id'] . str_repeat('0', $indexLength) . $index;
}
private function getCommonResult($result, $successCode = 0)
protected function getCommonResult($result, $successCode = 0)
{
if ($result['code'] == $successCode) {
return [

Loading…
Cancel
Save