20240120-ljl-routeConfig
ljl 10 months ago
parent 990d7ac46c
commit 1101711b80

@ -4,6 +4,7 @@ namespace Dao\OrderPrint;
use Dao\AbstractDao;
use Dao\Common\LogisticsDao;
use Exception\BizException;
use OrderPrintTool;
use StatusConst;
@ -11,6 +12,9 @@ class OpSysExpressTplDao extends AbstractDao {
public function getFormatedById($tplId) {
$row = $this->getById($tplId);
if (empty($row)) {
throw new BizException('系统模板不存在');
}
return $this->formatRow($row);
}

@ -278,7 +278,7 @@ class InvoiceTplService extends AbstractService {
public function generateUserInvoiceTplAuthCode($mallId, $tplId) {
$uuid = CommonTool::getUuidName();
$uuid5 = Rhumsaa\Uuid\Uuid::uuid5($uuid, $mallId)->toString();
$uuid5 = \Rhumsaa\Uuid\Uuid::uuid5($uuid, $mallId)->toString();
$authCode = base64_encode($uuid5);
$update = array(

@ -863,6 +863,8 @@ class OrderPrintTool{
$maxTextWidth = $width - 35;
$maxTextHeight = $height - 5;
$loop = 0;
$x = 0;
$y = 0;
do {
if (++$loop > 10) {
break;

Loading…
Cancel
Save