WechatWapStruct.php 826 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. namespace addons\Sicpay\common\sdk\config;
  3. /**
  4. * 2.2.6 微信 wap
  5. * @package addons\Sicpay\common\sdk\config
  6. */
  7. class WechatWapStruct extends BaseWechatStruct
  8. {
  9. public $bank_code = "WAPWECHAT"; // app 调起sdk需要传入的值
  10. public $type = "Wap";
  11. public $scene_info;// 微信WAP必传参数
  12. public function __construct ($config = [])
  13. {
  14. parent::__construct($config, $this->type);
  15. }
  16. public function returnData ()
  17. {
  18. $data = parent::returnData(); // TODO: Change the autogenerated stub
  19. $return_url = \Yii::$app->services->setting->platform->get('system.h5_url')."/#/plugins/pages/order/list";
  20. $data['url'] = empty($this->response['mweb_url']) ? "" : $this->response['mweb_url'].'&redirect_url='.urlencode($return_url);
  21. return $data;
  22. }
  23. }