赠送的优惠券修改发送类型

This commit is contained in:
evoxwht 2023-03-28 11:42:08 +08:00
parent 6db6028ee0
commit 0b74118dd8
4 changed files with 5 additions and 4 deletions

View File

@ -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支付

View File

@ -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;

View File

@ -569,6 +569,7 @@ class StoreOrderDeliveryServices extends BaseServices
/**
* 虚拟商品自动发货
* @param $orderInfo
* @throws \ReflectionException
*/
public function virtualSend($orderInfo)
{

View File

@ -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)
{