|
@@ -166,9 +166,9 @@ class User extends BaseModel
|
|
|
* @throws ModelNotFoundException
|
|
|
* @throws DbException
|
|
|
*/
|
|
|
- public static function setSpread($spread, $uid)
|
|
|
+ public static function setSpread($spread, $uid ,$type = 0)
|
|
|
{
|
|
|
- return UserSpread::setSpread($uid, $spread);
|
|
|
+ return UserSpread::setSpread($uid, $spread, $type);
|
|
|
//当前用户信息
|
|
|
// $userInfo = self::where('uid', $uid)->find();
|
|
|
// if (!$userInfo) return true;
|