修改活动用户数据写入的错误

This commit is contained in:
luofei 2024-01-30 17:11:05 +08:00
parent 2194197d6b
commit 450c5f8300

View File

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