|
|
@@ -133,7 +133,16 @@ class SupefinaSpeiLogic extends BaseApiLogic
|
|
|
}
|
|
|
|
|
|
if (!empty($order->pay_at) || !empty($order->finished_at)) {
|
|
|
- return 'SUCCESS';
|
|
|
+ if ($order->payment_sn != $post['supefinaOrderId']) {
|
|
|
+ $logic = new OrderLogic();
|
|
|
+ $amount = 100;
|
|
|
+ $order_sn = $order_sn.'#'.time();
|
|
|
+ $logic->orderCreate($order_sn, $amount, 'SupefinaSpei', $order->user_id);
|
|
|
+ $order = DB::connection('write')->table('agent.dbo.order')->where('order_sn', $order_sn)
|
|
|
+ ->first();
|
|
|
+ } else {
|
|
|
+ return 'SUCCESS';
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
$status = (string)($post['status'] ?? '');
|