服务包订单支付成功回调,增加了发放优惠卷
This commit is contained in:
@@ -50,6 +50,7 @@ use App\Model\UserSystem;
|
||||
use App\Model\VideoRecord;
|
||||
use App\Model\VideoReservation;
|
||||
use App\Services\BaseService;
|
||||
use App\Services\CouponService;
|
||||
use App\Services\ImService;
|
||||
use App\Services\InquiryService;
|
||||
use App\Services\MessagePush;
|
||||
@@ -2736,6 +2737,15 @@ class CallBackController extends AbstractController
|
||||
return $server->serve();
|
||||
}
|
||||
|
||||
// 发放优惠卷
|
||||
$CouponService = new CouponService();
|
||||
$res = $CouponService->GrantBuyOrderServicePackageCoupon($order_service_package['user_id']);
|
||||
if (!$res) {
|
||||
Db::rollBack();
|
||||
Log::getInstance("CallBack-wxPayServiceSuccess")->error("订单创建失败");
|
||||
return $server->serve();
|
||||
}
|
||||
|
||||
// 加入未接诊取消订单延迟队列
|
||||
$time = 60 * 60 * 24;
|
||||
if (\Hyperf\Config\config('app_env') == "dev"){
|
||||
|
||||
Reference in New Issue
Block a user