JuShuiTanJob.php 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <?php
  2. /**
  3. * 重庆赤晓店信息科技有限公司
  4. * https://www.chixiaodian.com
  5. * Copyright (c) 2023 赤店商城 All rights reserved.
  6. */
  7. namespace app\jobs;
  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 JuShuiTanJob 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. debug_log(__METHOD__ . '~~~~~~~~已弃用~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~');
  25. throw new \Exception(__METHOD__ . '~~~~~~~~已弃用~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~');
  26. return;
  27. $_GET['md_id'] = 0;
  28. if($this->in_action){
  29. $action = $this->in_action;
  30. $this->$action();
  31. }
  32. }
  33. public function executeGoods2JST() {
  34. echo '----executeGoods2JST----' . $this->start_id;
  35. $res = JuShuiTanForm::goods2JST($this->id, $this->start_id, $this->count, $this->upType);
  36. echo '----executeGoods2JST--end--' . $this->start_id;
  37. echo json_encode($res);
  38. }
  39. public function executeCat2JST() {
  40. echo '----executeCat2JST----' . $this->start_id;
  41. $res = JuShuiTanForm::cat2Jst($this->id, $this->start_id, $this->count);
  42. echo '----executeCat2JST--end--' . $this->start_id;
  43. echo json_encode($res);
  44. }
  45. public function executeOrder2JST() {
  46. echo '----executeOrder2JST----' . $this->start_id;
  47. $res = JuShuiTanForm::order2Jst($this->id, $this->start_id, $this->count);
  48. echo '----executeOrder2JST--end--' . $this->start_id;
  49. echo json_encode($res);
  50. }
  51. }