...
|
...
|
@@ -771,24 +771,24 @@ class Order extends Api |
|
|
"data": null
|
|
|
})
|
|
|
*/
|
|
|
// public function payCountdown()
|
|
|
// {
|
|
|
// $order_id = $this->request->param('order_id');
|
|
|
// empty($order_id) && $this->error('缺少必需参数');
|
|
|
// $order = $this->model->get($order_id,['grab_success']);
|
|
|
// empty($order) && $this->error('订单信息不存在');
|
|
|
// $order['status'] != '2' && $this->error('订单不合法');
|
|
|
// Db::startTrans();
|
|
|
// try{
|
|
|
// self::payCountdownAction($order);
|
|
|
// Db::commit();
|
|
|
// } catch (PDOException $e) {
|
|
|
// Db::rollback();
|
|
|
// } catch (Exception $e) {
|
|
|
// Db::rollback();
|
|
|
// }
|
|
|
// $this->success('成功');
|
|
|
// }
|
|
|
public function payCountdown()
|
|
|
{
|
|
|
$order_id = $this->request->param('order_id');
|
|
|
empty($order_id) && $this->error('缺少必需参数');
|
|
|
$order = $this->model->get($order_id,['grab_success']);
|
|
|
empty($order) && $this->error('订单信息不存在');
|
|
|
$order['status'] != '2' && $this->error('订单不合法');
|
|
|
Db::startTrans();
|
|
|
try{
|
|
|
self::payCountdownAction($order);
|
|
|
Db::commit();
|
|
|
} catch (PDOException $e) {
|
|
|
Db::rollback();
|
|
|
} catch (Exception $e) {
|
|
|
Db::rollback();
|
|
|
}
|
|
|
$this->success('成功');
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* @ApiInternal
|
...
|
...
|
|