彭俊 hace 6 años
padre
commit
8c2452bb27

+ 1 - 4
Application/Api/Controller/Betorder.php

@@ -556,10 +556,7 @@ class Betorder extends BaseController{
     }
 
     public function Bet(){
-        $this->commonFunction->setOrderQueue();
-        exit;
-
-
+     
         /*
         // 模拟单式数据
         $get_data = [

+ 1 - 3
Biz/Common/CommonFunction.php

@@ -1402,9 +1402,7 @@ class CommonFunction {
     function setOrderQueue($orderData){
         $data = json_encode($orderData,256);
         $redis = (new RedisOP())->get();
-        echo 123;
-        echo '<br>';
-        dump($redis);exit;
+      
         $redis->select(1);
 
         $key = "ORDER_QUEUE";

+ 1 - 1
Biz/Db/Redis/RedisOP.php

@@ -22,7 +22,7 @@ class RedisOP
     {
         if (class_exists ('Redis')) {
             $redis = new \Redis();
-            $config = include ROOT_PATH . '/Config/redis.php';
+            $config = include ROOT_PATH . '/Config/Redis.php';
             if (!isset($config['host'])) return null;//throw new \ErrorException('服务器不存在!');
             $host = $config['host'];
             $port = isset($config['port']) ? $config['port'] : 6379;