|
|
@@ -155,19 +155,14 @@ class NewSupefinaSpeiLogic extends BaseApiLogic
|
|
|
->lock('with(nolock)')
|
|
|
->where('order_sn', $order_sn)->first();
|
|
|
if (!$order) {
|
|
|
- $order = DB::connection('write')->table('agent.dbo.order')
|
|
|
- ->lock('with(nolock)')
|
|
|
- ->where('payment_sn', $post['platformOrderNo'])
|
|
|
- ->first();
|
|
|
- if ($order) {
|
|
|
- Util::WriteLog('NewSupefinaSpei', 'repeat call by platformOrderNo: ' . $post['platformOrderNo']);
|
|
|
- return '{"success":true}';
|
|
|
+ $orderArr = explode('-', $order_sn);
|
|
|
+ if (count($orderArr) > 1) {
|
|
|
+ $order_sn1 = $orderArr[0];
|
|
|
+ $order = DB::connection('write')->table('agent.dbo.order')
|
|
|
+ ->lock('with(nolock)')
|
|
|
+ ->where('order_sn', $order_sn1)
|
|
|
+ ->first();
|
|
|
}
|
|
|
- $logic = new OrderLogic();
|
|
|
- $amount = 100;
|
|
|
- $logic->orderCreate($order_sn, $amount, 'NewSupefinaSpei', $order->user_id);
|
|
|
- $order = DB::connection('write')->table('agent.dbo.order')->where('order_sn', $order_sn)
|
|
|
- ->first();
|
|
|
}
|
|
|
|
|
|
if (!empty($order->pay_at) || !empty($order->finished_at)) {
|