GamePackLogLogic.php 930 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | saiadmin [ saiadmin快速开发框架 ]
  4. // +----------------------------------------------------------------------
  5. // | Author: your name
  6. // +----------------------------------------------------------------------
  7. namespace app\v1\logic\gameLog;
  8. use plugin\saiadmin\basic\BaseLogic;
  9. use plugin\saiadmin\exception\ApiException;
  10. use plugin\saiadmin\utils\Helper;
  11. use app\v1\model\gameLog\GamePackLog;
  12. use Illuminate\Support\Facades\Date;
  13. use plugin\saiadmin\service\OpenSpoutWriter;
  14. /**
  15. * 打包记录逻辑层
  16. */
  17. class GamePackLogLogic extends BaseLogic
  18. {
  19. /**
  20. * 构造函数
  21. */
  22. public function __construct()
  23. {
  24. $this->model = new GamePackLog();
  25. }
  26. /**
  27. * 批量打包
  28. */
  29. public function batchSave($data)
  30. {
  31. $res = $this->model->insertAll($data);
  32. return $res;
  33. }
  34. }