WapReaderPageFissionService.php 797 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: z-yang
  5. * Date: 2018/12/12
  6. * Time: 10:35
  7. */
  8. namespace App\Modules\User\Services;
  9. use App\Modules\User\Models\WapReaderPageFission;
  10. class WapReaderPageFissionService
  11. {
  12. public static function create($uid,$bid,$distribution_channel_id,$type,$from_uid=0){
  13. $type = strtoupper($type);
  14. try{
  15. WapReaderPageFission::create(compact('uid','distribution_channel_id','type','bid','from_uid'));
  16. }catch (\Exception $e){}
  17. }
  18. public static function createV2($uid,$bid,$distribution_channel_id,$type,$from_uid,$cid){
  19. $type = strtoupper($type);
  20. try{
  21. WapReaderPageFission::create(compact('uid','distribution_channel_id','type','bid','from_uid','cid'));
  22. }catch (\Exception $e){}
  23. }
  24. }