@@ -263,9 +263,6 @@ class StoreOrderController
return app('json')->fail(410215);
}
- //重新生成订单号去支付
-// $order['order_id'] = mt_rand(100, 999) . '_' . $order['order_id'];
-
//0元支付
if (bcsub((string)$orderInfo['pay_price'], '0', 2) <= 0) {
//创建订单jspay支付
@@ -259,7 +259,7 @@ class StoreCouponIssueServices extends BaseServices
$data['add_time'] = $item['start_use_time'];
$data['end_time'] = $item['end_use_time'];
- $data['type'] = 'get';
+ $data['type'] = 'send';
$issue['uid'] = $uid;
$issue['issue_coupon_id'] = $item['id'];
$issue['add_time'] = $time;
@@ -569,6 +569,7 @@ class StoreOrderDeliveryServices extends BaseServices
/**
* 虚拟商品自动发货
* @param $orderInfo
+ * @throws \ReflectionException
*/
public function virtualSend($orderInfo)
{
@@ -92,6 +92,9 @@ class StoreProductCouponServices extends BaseServices
* @param int $uid
* @param $orderId
* @return array
+ * @throws \think\db\exception\DataNotFoundException
+ * @throws \think\db\exception\DbException
+ * @throws \think\db\exception\ModelNotFoundException
public function giveOrderProductCoupon(int $uid, $orderId)