@@ -134,6 +134,18 @@ class Agent
|
||||
return $this->parentUserId;
|
||||
}
|
||||
|
||||
/**
|
||||
* 支付后更新本人最近合格订单时间
|
||||
*/
|
||||
public function touchLastSelfOrderTime($time = null)
|
||||
{
|
||||
if (empty($this->agent)) {
|
||||
return false;
|
||||
}
|
||||
$this->agent->last_self_order_time = $time ?: time();
|
||||
return $this->agent->save();
|
||||
}
|
||||
|
||||
/**
|
||||
* 创建分销商
|
||||
*/
|
||||
|
||||
在新工单中引用
屏蔽一个用户