修改UserController
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user