DoEditSmsMessage.php 860 B

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