Browse Source

fix 支付方式导致的订单开始状态为代发货状态

stanley-king 8 năm trước cách đây
mục cha
commit
7ecaa870ea
2 tập tin đã thay đổi với 2 bổ sung3 xóa
  1. 1 1
      data/logic/buy_1.logic.php
  2. 1 2
      test/orderTest.php

+ 1 - 1
data/logic/buy_1.logic.php

@@ -797,7 +797,7 @@ class buy_1Logic
      */
     public function getStorePayTypeList($store_id_array, $if_offpay, $pay_name) {
         $store_pay_type_list = array();
-        if ($_POST['pay_name'] == 'online') {
+        if ($pay_name == 'online') {
             foreach ($store_id_array as $store_id) {
                 $store_pay_type_list[$store_id] = 'online';
             }

+ 1 - 2
test/orderTest.php

@@ -23,14 +23,13 @@ class orderTest extends PHPUnit_Framework_TestCase
     }
     public static function testSuccess()
     {
-
         $model_order = Model('order');
         $logic_order = Logic('order');
         $condition = array();
         $condition['order_state'] = ORDER_STATE_SEND;
         $condition['lock_state'] = 0;
         //$condition['delay_time'] = array('lt',time() - ORDER_AUTO_RECEIVE_DAY * 86400);
-        $condition['order_id'] = 6329;
+        $condition['order_id'] = 6370;
 
         //分批,每批处理100个订单,最多处理5W个订单
         $order_list = $model_order->getOrderList($condition, '', '*', 'delay_time asc', 100);