|
|
|
@ -163,13 +163,15 @@ class Order extends BaseService |
|
|
|
|
* @notes:生成订单 |
|
|
|
|
* @param int $serverId |
|
|
|
|
* @param int $couponId |
|
|
|
|
* @param string $server_address |
|
|
|
|
* @param string $server_time |
|
|
|
|
* @param string $buyer_remark |
|
|
|
|
* @return array |
|
|
|
|
* @throws BaseException |
|
|
|
|
* @throws DbException |
|
|
|
|
* @author: wanghousheng |
|
|
|
|
*/ |
|
|
|
|
public function createOrder(int $serverId, int $couponId, string $buyer_remark = ''): array |
|
|
|
|
public function createOrder(int $serverId, int $couponId, string $server_address, string $server_time, string $buyer_remark = ''): array |
|
|
|
|
{ |
|
|
|
|
$userId = UserService::getCurrentLoginUserId(); |
|
|
|
|
$data = $this->onCheck($serverId, $couponId); |
|
|
|
@ -190,6 +192,8 @@ class Order extends BaseService |
|
|
|
|
'buyer_remark' => $buyer_remark, |
|
|
|
|
'create_time' => time(), |
|
|
|
|
'update_time' => time(), |
|
|
|
|
'server_time' => $server_time, |
|
|
|
|
'server_address' => $server_address, |
|
|
|
|
]; |
|
|
|
|
$model = new ServerOrder(); |
|
|
|
|
$order_id = $model->insertGetId($order_data); |
|
|
|
|