购物车reload标识
This commit is contained in:
@@ -91,7 +91,6 @@ class Base extends Model
|
|||||||
$broadcast_json = json_encode($broadcast_arr);
|
$broadcast_json = json_encode($broadcast_arr);
|
||||||
Gateway::sendToGroup($shopGroup, $broadcast_json, $new_client_id);
|
Gateway::sendToGroup($shopGroup, $broadcast_json, $new_client_id);
|
||||||
}
|
}
|
||||||
return "";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!$by_shop_id && !empty(self::$shop_id) && !empty($broadcast_arr['data']['table_code'])) {
|
if(!$by_shop_id && !empty(self::$shop_id) && !empty($broadcast_arr['data']['table_code'])) {
|
||||||
|
|||||||
@@ -406,7 +406,7 @@ class Cashier extends Base
|
|||||||
$rand = 'shopping_cleanup' . Random::build();
|
$rand = 'shopping_cleanup' . Random::build();
|
||||||
$snd_data = [
|
$snd_data = [
|
||||||
'msg' => '购物车刷新',
|
'msg' => '购物车刷新',
|
||||||
'operate_type' => 'reload',
|
'operate_type' => 'reload_resp',
|
||||||
'msg_id' => $rand,
|
'msg_id' => $rand,
|
||||||
'type' => 'cashier',
|
'type' => 'cashier',
|
||||||
'data_type' => 'cart',
|
'data_type' => 'cart',
|
||||||
|
|||||||
@@ -362,7 +362,7 @@ class Manage extends Base
|
|||||||
$rand = 'shopping_cleanup' . Random::build();
|
$rand = 'shopping_cleanup' . Random::build();
|
||||||
$snd_data = [
|
$snd_data = [
|
||||||
'msg' => '购物车刷新',
|
'msg' => '购物车刷新',
|
||||||
'operate_type' => 'reload',
|
'operate_type' => 'reload_resp',
|
||||||
'msg_id' => $rand,
|
'msg_id' => $rand,
|
||||||
'type' => 'manage',
|
'type' => 'manage',
|
||||||
'data_type' => 'cart',
|
'data_type' => 'cart',
|
||||||
|
|||||||
@@ -364,7 +364,7 @@ class Onboc extends Base
|
|||||||
$rand = 'shopping_cleanup' . Random::build();
|
$rand = 'shopping_cleanup' . Random::build();
|
||||||
$snd_data = [
|
$snd_data = [
|
||||||
'msg' => '购物车刷新',
|
'msg' => '购物车刷新',
|
||||||
'operate_type' => 'reload',
|
'operate_type' => 'reload_resp',
|
||||||
'msg_id' => $rand,
|
'msg_id' => $rand,
|
||||||
'type' => 'onboc',
|
'type' => 'onboc',
|
||||||
'data_type' => 'cart',
|
'data_type' => 'cart',
|
||||||
|
|||||||
@@ -378,7 +378,7 @@ class Pad extends Base
|
|||||||
$rand = 'shopping_cleanup' . Random::build();
|
$rand = 'shopping_cleanup' . Random::build();
|
||||||
$snd_data = [
|
$snd_data = [
|
||||||
'msg' => '购物车刷新',
|
'msg' => '购物车刷新',
|
||||||
'operate_type' => 'reload',
|
'operate_type' => 'reload_resp',
|
||||||
'msg_id' => $rand,
|
'msg_id' => $rand,
|
||||||
'type' => 'pad',
|
'type' => 'pad',
|
||||||
'data_type' => 'cart',
|
'data_type' => 'cart',
|
||||||
|
|||||||
@@ -343,7 +343,7 @@ class Shopping extends Base
|
|||||||
$rand = 'shopping_cleanup' . Random::build();
|
$rand = 'shopping_cleanup' . Random::build();
|
||||||
$snd_data = [
|
$snd_data = [
|
||||||
'msg' => '购物车刷新',
|
'msg' => '购物车刷新',
|
||||||
'operate_type' => 'reload',
|
'operate_type' => 'reload_resp',
|
||||||
'msg_id' => $rand,
|
'msg_id' => $rand,
|
||||||
'type' => 'shopping',
|
'type' => 'shopping',
|
||||||
'data_type' => 'cart',
|
'data_type' => 'cart',
|
||||||
|
|||||||
Reference in New Issue
Block a user