|
|
@@ -401,16 +401,18 @@ class OrderClass extends BaseClass
|
|
|
}
|
|
|
|
|
|
//云打印 ssh 20210709
|
|
|
- public static function onlinePrint($order)
|
|
|
+ public static function onlinePrint($order, $must = false)
|
|
|
{
|
|
|
if (empty($order)) {
|
|
|
return false;
|
|
|
}
|
|
|
- if ($order->needPrint != dict::getDict('needPrint', 'need')) {
|
|
|
- return false;
|
|
|
- }
|
|
|
- if ($order->payStatus != 1) {
|
|
|
- return false;
|
|
|
+ if ($must == false) {
|
|
|
+ if ($order->needPrint != dict::getDict('needPrint', 'need')) {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ if ($order->payStatus != 1) {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
$shopId = $order->shopId ?? 0;
|