|
@@ -44,7 +44,7 @@ class TestCardNo extends TestCase
|
|
|
|
|
|
public function testYzValidate()
|
|
|
{
|
|
|
-
|
|
|
+
|
|
|
|
|
|
}
|
|
|
|
|
@@ -100,4 +100,21 @@ class TestCardNo extends TestCase
|
|
|
$card_type = mtopcard\card_type($card_no,$region);
|
|
|
|
|
|
}
|
|
|
+
|
|
|
+ public function testLoop_order()
|
|
|
+ {
|
|
|
+ $ins = Cache::getInstance('cacheredis');
|
|
|
+ $name = 'loop_order_check_query';
|
|
|
+ $loop_order = $ins->hget($name, '', '*');
|
|
|
+
|
|
|
+ $cond['vr_order.order_state'] = ORDER_STATE_SEND;
|
|
|
+ $order_list = Model('refill_order')->getAllOrders($cond);
|
|
|
+
|
|
|
+ foreach ($order_list as $order)
|
|
|
+ {
|
|
|
+ $card_no = $order['card_no'];
|
|
|
+ $spec = intval($order['refill_amount']);
|
|
|
+ $key = "{$card_no}-{$spec}";
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|