|
|
@@ -1896,37 +1896,6 @@ class OrderClass extends BaseClass
|
|
|
$content .= "<BR>";
|
|
|
|
|
|
$ext = ShopExtClass::getByCondition(['shopId' => $shopId]);
|
|
|
-
|
|
|
- if (getenv('YII_ENV') == 'production') {
|
|
|
- //都市花季特殊情况,孙哥有一个小票机打印,其他人用一个小票机,客户下单二个小票机都打
|
|
|
- if ($shopId == 1212) {
|
|
|
- if (isset($orderInfo['shopAdminId']) && !empty($orderInfo['shopAdminId'])) {
|
|
|
- //员工开单的
|
|
|
- if ($orderInfo['shopAdminId'] == 127153) {
|
|
|
- //孙哥
|
|
|
- $printSn = '817003561';
|
|
|
- $p = new printUtil($printSn);
|
|
|
- $p->printMsg($content);
|
|
|
- } else {
|
|
|
- //其它人
|
|
|
-// $printSn = '817003563';
|
|
|
-// $p = new printUtil($printSn);
|
|
|
-// $p->printMsg($content);
|
|
|
- }
|
|
|
- } else {
|
|
|
- //客户商城下单
|
|
|
- $printSn = '817003561';
|
|
|
- $p = new printUtil($printSn);
|
|
|
- $p->printMsg($content);
|
|
|
-
|
|
|
-// $printSn = '817003563';
|
|
|
-// $p = new printUtil($printSn);
|
|
|
-// $p->printMsg($content);
|
|
|
- }
|
|
|
- return true;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
$printSn = $ext['printSn'] ?? '';
|
|
|
if (!empty($printSn)) {
|
|
|
$p = new printUtil($printSn);
|