MqController.php 728 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. namespace console\controllers;
  3. use bizHd\goods\classes\GoodsCategoryClass;
  4. use bizHd\goods\classes\GoodsClass;
  5. use bizHd\goods\classes\KindClass;
  6. use bizHd\order\classes\OrderGoodsClass;
  7. use bizHd\shop\classes\ShopClass;
  8. use bizHd\work\classes\WorkClass;
  9. use yii\console\Controller;
  10. use Yii;
  11. class MqController extends Controller
  12. {
  13. public function actionCs()
  14. {
  15. echo 123;
  16. }
  17. //花店采购通知供货商 ssh 20230805
  18. public function actionHdCgNoticeGhs()
  19. {
  20. $noticeKey = "hdCgNoticeGhs";
  21. $json = Yii::$app->redis->executeCommand('RPOP', [$noticeKey]);
  22. if (!empty($json)) {
  23. $arr = json_decode($json, true);
  24. print_r($arr);
  25. }
  26. }
  27. }