|
@@ -4,6 +4,8 @@ namespace refill\by_online;
|
|
require_once(BASE_HELPER_RAPI_PATH . '/by_online/config.php');
|
|
require_once(BASE_HELPER_RAPI_PATH . '/by_online/config.php');
|
|
|
|
|
|
use refill;
|
|
use refill;
|
|
|
|
+use QueueClient;
|
|
|
|
+
|
|
class RefillCallBack implements refill\IRefillCallBack
|
|
class RefillCallBack implements refill\IRefillCallBack
|
|
{
|
|
{
|
|
public function verify($params): bool
|
|
public function verify($params): bool
|
|
@@ -31,6 +33,7 @@ class RefillCallBack implements refill\IRefillCallBack
|
|
if ($status === 7) {
|
|
if ($status === 7) {
|
|
$data['official_sn'] = strtolower($params['charge_id']) == 'null' ? '' : $params['charge_id'];
|
|
$data['official_sn'] = strtolower($params['charge_id']) == 'null' ? '' : $params['charge_id'];
|
|
Model('refill_order')->edit($order_id, $data);
|
|
Model('refill_order')->edit($order_id, $data);
|
|
|
|
+ QueueClient::async_push("QueryByOnlineRefund", ['order_id' => $order_id], 3600);
|
|
return [$order_id, true, false, true];
|
|
return [$order_id, true, false, true];
|
|
} elseif (in_array($status, [3, 4, 6], true)) {
|
|
} elseif (in_array($status, [3, 4, 6], true)) {
|
|
return [$order_id, false, true, true];
|
|
return [$order_id, false, true, true];
|