|
@@ -51,7 +51,7 @@ class RefillCallBack implements refill\IRefillCallBack
|
|
|
|
|
|
public function notify($params)
|
|
|
{
|
|
|
- $status = $params['status'];
|
|
|
+ $status = intval($params['status']);
|
|
|
$order_sn = $params['mchOrderNo'];
|
|
|
$order_info = Model('vr_order')->getOrderInfo(['order_sn' => $order_sn]);
|
|
|
if (empty($order_info)) {
|
|
@@ -59,11 +59,11 @@ class RefillCallBack implements refill\IRefillCallBack
|
|
|
}
|
|
|
|
|
|
$order_id = $order_info['order_id'];
|
|
|
- if ($status === '2') {
|
|
|
+ if ($status === 2) {
|
|
|
$data['official_sn'] = strtolower($params['certificate']) == 'null' ? '' : $params['certificate'];
|
|
|
Model('refill_order')->edit($order_id, $data);
|
|
|
return [$order_id, true, false, true];
|
|
|
- } elseif ($status === '3') {
|
|
|
+ } elseif ($status === 3) {
|
|
|
return [$order_id, false, true, true];
|
|
|
} else {
|
|
|
return [$order_id, false, false, false];
|