From 4477be2a58ce409798e6efb79df9909b0a4b5b6f Mon Sep 17 00:00:00 2001 From: evoxwht <442384644@qq.com> Date: Fri, 24 Mar 2023 10:34:42 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=89=E6=8B=A9=E6=9C=AA=E5=BC=80=E7=A5=A8?= =?UTF-8?q?=E7=9A=84=E6=97=B6=E5=80=99=EF=BC=8C=E4=B8=8D=E5=86=99=E5=85=A5?= =?UTF-8?q?=E5=BC=80=E7=A5=A8=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crmeb/app/model/system/store/SystemStore.php | 2 -- crmeb/app/services/order/StoreOrderInvoiceServices.php | 4 +++- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/crmeb/app/model/system/store/SystemStore.php b/crmeb/app/model/system/store/SystemStore.php index 649adf618..9fc53ab34 100644 --- a/crmeb/app/model/system/store/SystemStore.php +++ b/crmeb/app/model/system/store/SystemStore.php @@ -78,6 +78,4 @@ class SystemStore extends BaseModel $query->where('id|name|introduction|phone', 'LIKE', "%$value%"); } } - - } diff --git a/crmeb/app/services/order/StoreOrderInvoiceServices.php b/crmeb/app/services/order/StoreOrderInvoiceServices.php index 0ea780c78..3e76fc10a 100644 --- a/crmeb/app/services/order/StoreOrderInvoiceServices.php +++ b/crmeb/app/services/order/StoreOrderInvoiceServices.php @@ -155,7 +155,9 @@ class StoreOrderInvoiceServices extends BaseServices if (!$orderInvoice) { throw new ApiException(100026); } - $data['invoice_time'] = time(); + if ($data['is_invoice'] == 1) { + $data['invoice_time'] = time(); + } if (!$this->dao->update($id, $data, 'id')) { throw new ApiException(100015); }