wanggangtao 5 년 전
부모
커밋
2a129fbeec
6개의 변경된 파일10개의 추가작업 그리고 6개의 파일을 삭제
  1. 1 1
      api/v1.0/stock_any_day.php
  2. 5 1
      api/v1.0/stock_current_day.php
  3. 1 1
      api/v1.0/stock_day_k.php
  4. 1 1
      api/v1.0/stock_info.php
  5. 1 1
      api/v1.0/stock_list.php
  6. 1 1
      api/v1.0/stock_recent_days.php

+ 1 - 1
api/v1.0/stock_any_day.php

@@ -102,7 +102,7 @@ try {
     }
     else
     {
-        echo action_msg( $code.API::EMPTY_MSG ,API::EMPTY);
+        echo action_msg(API::EMPTY_STOCK, API::EMPTY_STOCK_MSG);
     }
 }catch (MyException $e){
     $api->ApiError($e->getCode(), $e->getMessage());

+ 5 - 1
api/v1.0/stock_current_day.php

@@ -89,8 +89,12 @@ try {
             $params["m60"]=$stock_info["m60"];
             $params["m233"]=$stock_info["m233"];
         }
+        echo action_array($params);
+    }
+    else{
+        echo action_msg(API::EMPTY_STOCK, API::EMPTY_STOCK_MSG);
+
     }
-    echo action_array($params);
 }catch (MyException $e){
     $api->ApiError($e->getCode(), $e->getMessage());
 }

+ 1 - 1
api/v1.0/stock_day_k.php

@@ -130,7 +130,7 @@ try {
     }
     else
     {
-        echo action_msg(API::EMPTY, API::EMPTY_MSG);
+        echo action_msg(API::EMPTY_STOCK, API::EMPTY_STOCK_MSG);
     }
 
 }catch (MyException $e){

+ 1 - 1
api/v1.0/stock_info.php

@@ -16,7 +16,7 @@ try {
     $stock_info=Stock::getInfoByCode($code);
     if(empty($stock_info))
     {
-        echo action_msg(API::EMPTY_MSG,API::EMPTY);
+        echo action_msg(API::EMPTY_STOCK, API::EMPTY_STOCK_MSG);
         return;
     }
     else

+ 1 - 1
api/v1.0/stock_list.php

@@ -72,7 +72,7 @@ try {
         $params["list"]=$data;
         echo action_array($params);
     }else{
-        echo action_msg(API::EMPTY, API::EMPTY_MSG);
+        echo action_msg(API::EMPTY_STOCK, API::EMPTY_STOCK_MSG);
     }
 
 

+ 1 - 1
api/v1.0/stock_recent_days.php

@@ -134,7 +134,7 @@ try {
 
     }
     else{
-        echo action_msg(API::EMPTY, API::EMPTY_MSG);
+        echo action_msg(API::EMPTY_STOCK, API::EMPTY_STOCK_MSG);
     }
 
 }catch (MyException $e){