|
@@ -290,7 +290,7 @@ class refillControl extends merchantControl
|
|
|
|
|
|
$order_state = refill\util::query_queue_order($mchid,$order_sn);
|
|
|
if ($order_state == ORDER_STATE_QUEUE || $order_state == ORDER_STATE_SEND) {
|
|
|
- Log::record("query_queue",Log::DEBUG);
|
|
|
+ Log::record("query_state in queue order_state={$order_state}" ,Log::DEBUG);
|
|
|
$result['mchid'] = $mchid;
|
|
|
$result['order_sn'] = $order_sn;
|
|
|
$result['order_state'] = $order_state;
|
|
@@ -305,13 +305,15 @@ class refillControl extends merchantControl
|
|
|
|
|
|
if(empty($refill_info))
|
|
|
{
|
|
|
+ Log::record("query_state in db no order" ,Log::DEBUG);
|
|
|
return self::outerr(202, "无此订单");
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
$vr_order = Model('vr_order');
|
|
|
$order_info = $vr_order->getOrderInfo(['order_sn' => $refill_info['order_sn']]);
|
|
|
-
|
|
|
+ Log::record("query_state in queue order_state={$order_info['order_state']}" ,Log::DEBUG);
|
|
|
+
|
|
|
if (empty($order_info)) {
|
|
|
return self::outerr(203, "无此交易号");
|
|
|
} else {
|