12345678910111213141516171819 |
- <?php
- namespace app\common\Service\User;
- use app\common\model\user\Share as ShareModel;
- class UserShare
- {
- // 增加分享记录
- public static function addShare($userId = 0, $shareId = 0, $from = '', $platform = '')
- {
- $shareModel = new ShareModel();
- $shareModel->user_id = $userId;
- $shareModel->share_id = $shareId;
- $shareModel->from = $from;
- $shareModel->platform = $platform;
- $shareModel->save();
- }
- }
|