user_id = $userId; $shareModel->share_id = $shareId; $shareModel->from = $from; $shareModel->platform = $platform; $shareModel->save(); } }