Order2JSTJob.php 888 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. /**
  3. * 重庆赤晓店信息科技有限公司
  4. * https://www.chixiaodian.com
  5. * Copyright (c) 2023 赤店商城 All rights reserved.
  6. */
  7. namespace app\jobs\jushuitan;
  8. use yii\base\BaseObject;
  9. use yii\queue\JobInterface;
  10. use app\modules\admin\models\wechat_mp\CardForm;
  11. use app\modules\admin\models\jushuitan\JuShuiTanForm;
  12. /**
  13. * 店铺复制-聚水潭
  14. */
  15. class Order2JSTJob extends BaseObject implements JobInterface
  16. {
  17. public $id;
  18. public $in_action;
  19. public $start_id = 0;
  20. public $count = 1;
  21. public $upType = 0;
  22. public function execute($queue)
  23. {
  24. $_GET['md_id'] = 0;
  25. echo '----executeOrder2JST----' . $this->start_id;
  26. $res = JuShuiTanForm::order2Jst($this->id, $this->start_id, $this->count);
  27. echo '----executeOrder2JST--end--' . $this->start_id;
  28. echo json_encode($res);
  29. }
  30. }