DoEditSmsMessage.php 928 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. /**
  3. * Niushop商城系统 - 团队十年电商经验汇集巨献!
  4. * =========================================================
  5. * Copy right 2019-2029 上海牛之云网络科技有限公司, 保留所有权利。
  6. * ----------------------------------------------
  7. * 官方网址: https://www.niushop.com
  8. * =========================================================
  9. */
  10. namespace addon\alisms\event;
  11. use addon\alisms\model\Config as ConfigModel;
  12. /**
  13. * 短信模板 (后台调用)
  14. */
  15. class DoEditSmsMessage
  16. {
  17. /**
  18. * 短信发送方式方式及配置
  19. */
  20. public function handle()
  21. {
  22. $config_model = new ConfigModel();
  23. $config_result = $config_model->getSmsConfig();
  24. $config = $config_result["data"];
  25. if ($config["is_use"] == 1) {
  26. return ["edit_url" => "alisms://shop/message/edit", "shop_url" => "alisms://shop/message/edit"];
  27. }
  28. }
  29. }