|
@@ -19,7 +19,7 @@ class RefillCallBack implements refill\IRefillCallBack
|
|
|
private function sign($params)
|
|
|
{
|
|
|
$key = config::APP_KEY;
|
|
|
- $content = "{$params['username']}{$params['orderNumber']}{$params['number']}{$params['money']}[{$params['status']}]{$params['endTime']}{$key}";
|
|
|
+ $content = "{$params['username']}{$params['orderNumber']}{$params['number']}{$params['money']}[{$params['status']}]{$params['endTime']}$key";
|
|
|
return md5($content);
|
|
|
}
|
|
|
|
|
@@ -34,6 +34,8 @@ class RefillCallBack implements refill\IRefillCallBack
|
|
|
$order_id = $order_info['order_id'];
|
|
|
|
|
|
if ($status === 5) {
|
|
|
+ $official_sn = config::extract_official_sn($params['voucher']);
|
|
|
+ Model('refill_order')->edit($order_id, ['official_sn' => $official_sn]);
|
|
|
return [$order_id, true, false, true, ''];
|
|
|
}
|
|
|
elseif ($status === 6) {
|