'拆分活动的校验权限,分为发券和核券。'
This commit is contained in:
@@ -68,6 +68,28 @@ class Activity extends Model
|
||||
return $this->hasMany(ActivityCoupon::class);
|
||||
}
|
||||
|
||||
/**
|
||||
* Notes: 关联可发券渠道
|
||||
* @Author: 玄尘
|
||||
* @Date : 2020/8/21 11:09
|
||||
*/
|
||||
public function grants()
|
||||
{
|
||||
return $this->hasMany(ActivityGrant::class);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Notes: 关联可核销渠道
|
||||
* @Author: 玄尘
|
||||
* @Date : 2020/8/21 11:09
|
||||
*/
|
||||
public function verifications()
|
||||
{
|
||||
return $this->hasMany(ActivityVerification::class);
|
||||
|
||||
}
|
||||
|
||||
//发券
|
||||
public function grant($mobile, $outletId = null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user