修改UserController

This commit is contained in:
2020-12-07 10:07:04 +08:00
parent 6d7bfdd4f4
commit 5dc96a5cb1

View File

@@ -184,11 +184,20 @@ class UserController extends Controller
$total = $res['total'] ?? ''; //订单总额;
$outletId = $res['outletId'] ?? ''; //网点id;
$orderid = $res['orderid'] ?? ''; //订单id;
$from = $res['from'] ?? ''; //来源;
$redemptionCode = trim($redemptionCode);
$outletId = trim($outletId);
$coupon = Coupon::Redemption($this->user, $redemptionCode, $total, $outletId, $orderid);
$coupon = Coupon::Redemption(
$this->user,
$redemptionCode,
$total,
$outletId,
$orderid,
$from
);
if (is_string($coupon)) {
return $this->error($coupon, $log);
}