|
@@ -478,7 +478,7 @@ class RefillBase
|
|
|
if ($mch_amount > $available) {
|
|
|
$errmsg = "余额不足=$available";
|
|
|
Log::record($errmsg, Log::DEBUG);
|
|
|
- return [errcode::MERCHANT_SHORT_MONEY, $errmsg,$last_orderid,false,0];
|
|
|
+ return [errcode::MERCHANT_SHORT_MONEY, $errmsg, $last_orderid, false, 0];
|
|
|
}
|
|
|
|
|
|
foreach ($providers as $provider)
|
|
@@ -514,7 +514,6 @@ class RefillBase
|
|
|
else {
|
|
|
continue;
|
|
|
}
|
|
|
-
|
|
|
}
|
|
|
|
|
|
$mod_refill = Model('refill_order');
|
|
@@ -677,7 +676,7 @@ class RefillBase
|
|
|
$fSuccess = $refill_creater($order, $last_orderid, $order_id, $order_sn, $mod_refill);
|
|
|
|
|
|
if(!$fSuccess) {
|
|
|
- Log::record("refill_creater fail:order_sn={$order_sn}",Log::ERR);
|
|
|
+ Log::record("refill_creater fail: order_sn=$order_sn", Log::ERR);
|
|
|
$order_canceler($order_id,'refill_order 记录创建失败');
|
|
|
return [false, $order_id, $order_sn];
|
|
|
}
|
|
@@ -688,18 +687,18 @@ class RefillBase
|
|
|
}
|
|
|
|
|
|
Log::record(sprintf(__METHOD__ . " request time=%.6f", microtime(true) - $start), Log::DEBUG);
|
|
|
- return [true,$order_id,$order_sn];
|
|
|
+ return [true, $order_id, $order_sn];
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
Log::record(__METHOD__ . " fail:buyStep3 err msg={$result['msg']}", Log::ERR);
|
|
|
- return [false,0,''];
|
|
|
+ return [false, 0, ''];
|
|
|
}
|
|
|
}
|
|
|
catch (Exception $ex)
|
|
|
{
|
|
|
Log::record($ex->getMessage(), Log::ERR);
|
|
|
- return [false,0,''];
|
|
|
+ return [false, 0, ''];
|
|
|
}
|
|
|
}
|
|
|
|