修改活动用户数据写入的错误
This commit is contained in:
parent
2194197d6b
commit
450c5f8300
@ -112,7 +112,7 @@ class StoreActivityUserDao extends BaseDao
|
||||
$default = StoreActivityUser::where('user_id', $userId)->where('activity_id', $activityId)->where('status', 1)->find();
|
||||
if (empty($default)) {
|
||||
$couponId = StoreConsumption::where('type', StoreConsumption::TYPE_OWNER_CONSUMPTION)->value('coupon_id');
|
||||
$default - new StoreActivityUser();
|
||||
$default = new StoreActivityUser();
|
||||
$default->user_id = $userId;
|
||||
$default->activity_id = $activityId;
|
||||
$default->value = $couponId;
|
||||
|
Loading…
x
Reference in New Issue
Block a user