|
@@ -235,9 +235,21 @@ class TestRedis extends TestCase
|
|
|
{
|
|
|
$mod_refill = Model('refill_order');
|
|
|
$logic_vr_order = Logic("vr_order");
|
|
|
- $order_info = Model('vr_order')->getOrderInfo(['order_sn' => '8048610672755313557938']);
|
|
|
- $logic_vr_order->changeOrderStateCancel($order_info, '', "充值失败");
|
|
|
- $mod_refill->edit(['order_id' => $order_info['order_id']], ['commit_time' => time()]);
|
|
|
+
|
|
|
+ $order_sns = ['5943860673173455563706',
|
|
|
+ '2665080673173413785266',
|
|
|
+ '2144750673173408331874',
|
|
|
+ '0264200673173468514810',
|
|
|
+ '6182160673173394309881',
|
|
|
+ '4921980673173213664351',
|
|
|
+ '4929490673173213692303',
|
|
|
+ '2852870673172986502631'];
|
|
|
+
|
|
|
+ foreach ($order_sns as $order_sn) {
|
|
|
+ $order_info = Model('vr_order')->getOrderInfo(['order_sn' => $order_sn]);
|
|
|
+ $logic_vr_order->changeOrderStateCancel($order_info, '', "充值失败");
|
|
|
+ $mod_refill->edit(['order_id' => $order_info['order_id']], ['commit_time' => time()]);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
////docker-compose run phpcli php /var/www/html/phpunit-9.2.5.phar --filter "/(TestRedis::testCancel)( .*)?$/" --test-suffix TestRedis.php /var/www/html/test
|