GamePackLogLogic.php 620 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. namespace app\v1\logic\advert;
  3. use plugin\saiadmin\basic\BaseLogic;
  4. use plugin\saiadmin\exception\ApiException;
  5. use plugin\saiadmin\utils\Helper;
  6. use app\v1\model\advert\GamePackLog;
  7. use Illuminate\Support\Facades\Date;
  8. use plugin\saiadmin\service\OpenSpoutWriter;
  9. /**
  10. * 打包记录逻辑层
  11. */
  12. class GamePackLogLogic extends BaseLogic
  13. {
  14. /**
  15. * 构造函数
  16. */
  17. public function __construct()
  18. {
  19. $this->model = new GamePackLog();
  20. }
  21. /**
  22. * 批量打包
  23. */
  24. public function batchSave($data): int
  25. {
  26. return $this->model->insertAll($data);
  27. }
  28. }