购物车reload标识
This commit is contained in:
@@ -401,6 +401,22 @@ class Cashier extends Base
|
||||
Log::info('修改购物车时[error]->>>>>' . $e->getMessage());
|
||||
}
|
||||
break;
|
||||
case 'reload':
|
||||
$status = 1;
|
||||
$rand = 'shopping_cleanup' . Random::build();
|
||||
$snd_data = [
|
||||
'msg' => '购物车刷新',
|
||||
'operate_type' => 'reload',
|
||||
'msg_id' => $rand,
|
||||
'type' => 'cashier',
|
||||
'data_type' => 'cart',
|
||||
'status' => $status,
|
||||
'data' => [
|
||||
'table_code' => $message['table_code'],
|
||||
]
|
||||
];
|
||||
self::gateway_query('sendToClient', [$client_id, json_encode($snd_data)]);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -358,6 +358,22 @@ class Manage extends Base
|
||||
\support\Log::info('修改购物车时[error]->>>>>' . $e->getMessage());
|
||||
}
|
||||
break;
|
||||
case 'reload':
|
||||
$status = 1;
|
||||
$rand = 'shopping_cleanup' . Random::build();
|
||||
$snd_data = [
|
||||
'msg' => '购物车刷新',
|
||||
'operate_type' => 'reload',
|
||||
'msg_id' => $rand,
|
||||
'type' => 'manage',
|
||||
'data_type' => 'cart',
|
||||
'status' => $status,
|
||||
'data' => [
|
||||
'table_code' => $message['table_code'],
|
||||
]
|
||||
];
|
||||
self::gateway_query('sendToClient', [$client_id, json_encode($snd_data)]);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -359,6 +359,22 @@ class Onboc extends Base
|
||||
Log::info('修改购物车时[error]->>>>>' . $e->getMessage());
|
||||
}
|
||||
break;
|
||||
case 'reload':
|
||||
$status = 1;
|
||||
$rand = 'shopping_cleanup' . Random::build();
|
||||
$snd_data = [
|
||||
'msg' => '购物车刷新',
|
||||
'operate_type' => 'reload',
|
||||
'msg_id' => $rand,
|
||||
'type' => 'onboc',
|
||||
'data_type' => 'cart',
|
||||
'status' => $status,
|
||||
'data' => [
|
||||
'table_code' => $message['table_code'],
|
||||
]
|
||||
];
|
||||
self::gateway_query('sendToClient', [$client_id, json_encode($snd_data)]);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -373,6 +373,22 @@ class Pad extends Base
|
||||
Log::info('修改购物车时[error]->>>>>' . $e->getMessage());
|
||||
}
|
||||
break;
|
||||
case 'reload':
|
||||
$status = 1;
|
||||
$rand = 'shopping_cleanup' . Random::build();
|
||||
$snd_data = [
|
||||
'msg' => '购物车刷新',
|
||||
'operate_type' => 'reload',
|
||||
'msg_id' => $rand,
|
||||
'type' => 'pad',
|
||||
'data_type' => 'cart',
|
||||
'status' => $status,
|
||||
'data' => [
|
||||
'table_code' => $message['table_code'],
|
||||
]
|
||||
];
|
||||
self::gateway_query('sendToClient', [$client_id, json_encode($snd_data)]);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -338,6 +338,22 @@ class Shopping extends Base
|
||||
Log::info('修改购物车时[error]->>>>>' . $e->getMessage());
|
||||
}
|
||||
break;
|
||||
case 'reload':
|
||||
$status = 1;
|
||||
$rand = 'shopping_cleanup' . Random::build();
|
||||
$snd_data = [
|
||||
'msg' => '购物车刷新',
|
||||
'operate_type' => 'reload',
|
||||
'msg_id' => $rand,
|
||||
'type' => 'shopping',
|
||||
'data_type' => 'cart',
|
||||
'status' => $status,
|
||||
'data' => [
|
||||
'table_code' => $message['table_code'],
|
||||
]
|
||||
];
|
||||
self::gateway_query('sendToClient', [$client_id, json_encode($snd_data)]);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user