打印8686收到消息
This commit is contained in:
@@ -5,6 +5,7 @@ namespace plugin\webman\gateway;
|
|||||||
use ba\Random;
|
use ba\Random;
|
||||||
use extend\workermans\model\Base;
|
use extend\workermans\model\Base;
|
||||||
use GatewayWorker\Lib\Gateway;
|
use GatewayWorker\Lib\Gateway;
|
||||||
|
use support\Log;
|
||||||
use support\Redis;
|
use support\Redis;
|
||||||
use Workerman\Connection\TcpConnection;
|
use Workerman\Connection\TcpConnection;
|
||||||
use Workerman\Protocols\Http\Request;
|
use Workerman\Protocols\Http\Request;
|
||||||
@@ -34,6 +35,7 @@ class Events
|
|||||||
$params = $request->get('params');
|
$params = $request->get('params');
|
||||||
if (method_exists(Gateway::class, $method)) {
|
if (method_exists(Gateway::class, $method)) {
|
||||||
call_user_func_array([Gateway::class, $method], [$account, $params]);
|
call_user_func_array([Gateway::class, $method], [$account, $params]);
|
||||||
|
Log::info('打印8686收到消息-->' . $params);
|
||||||
$params_arr = json_decode($params, true);
|
$params_arr = json_decode($params, true);
|
||||||
// 如果是订单打印并且通过uid推送, 保存redis
|
// 如果是订单打印并且通过uid推送, 保存redis
|
||||||
if($params_arr['operate_type'] == 'order_print' && $method == 'sendToUid') {
|
if($params_arr['operate_type'] == 'order_print' && $method == 'sendToUid') {
|
||||||
|
|||||||
Reference in New Issue
Block a user