|
@@ -960,19 +960,13 @@ class WholeController extends Curd
|
|
|
// }
|
|
|
// }
|
|
|
// 打小票
|
|
|
- dump('开始打小票');
|
|
|
if (!empty($premises)){
|
|
|
- dump('餐厅');
|
|
|
$restaurant = SysDept::where('dept_super_id',$premises->dept_id)->where('dept_category','餐厅')->first();
|
|
|
if (!empty($restaurant->dept_extend_json)){
|
|
|
$deptExtendJson = json_decode($restaurant->dept_extend_json,true);
|
|
|
-
|
|
|
- dump('餐厅deptExtendJson',$deptExtendJson);
|
|
|
if (isset($deptExtendJson['printer'])){
|
|
|
- dump('打印机列表',$deptExtendJson);
|
|
|
foreach($deptExtendJson['printer'] as $key => $item){
|
|
|
- dump('状态:',strpos($key,'结账'),$params['order_status_payment']);
|
|
|
- if (strpos($key,'结账') !== false && $params['order_status_payment'] == 'SUCCESS'){
|
|
|
+ if (strpos($key,'结账') !== false && $order->order_status_payment == 'SUCCESS'){
|
|
|
$voteData = [
|
|
|
'func'=>'procActionToPrinter',
|
|
|
'sign'=>'',
|