config.php 1.2 KB

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. namespace refill\gaobiao;
  3. use mtopcard;
  4. class config
  5. {
  6. // 回调地址由上游配置
  7. const ORDER_URL = 'http://api.591ll.com/buy.aspx';
  8. const QUERY_URL= 'http://api.591ll.com/queryAgentId.aspx';
  9. const BALANCE_URL = 'http://api.591ll.com/queryAccount.aspx';
  10. const USER_ID= '57afb007-ccc5-44d2-ac06-6473fbbabb03';
  11. const KEY = '3C97BB5FED71F0BB';
  12. const NOTIFY_URL = BASE_SITE_URL . "/mobile/callback/refill_gaobiao.php";
  13. const operator = [
  14. mtopcard\ChinaMobileCard => '移动',
  15. mtopcard\ChinaUnicomCard => '联通',
  16. mtopcard\ChinaTelecomCard => '电信'
  17. ];
  18. const ExtHeaders = ['Content-Type:application/x-www-form-urlencoded;charset=utf-8'];
  19. //key格式 卡类型-面值-regin_no
  20. const Price = [
  21. //移动
  22. "4-10-16" => 10.1, "4-20-16" => 20.1, "4-30-16" => 30.102, "4-50-16" => 50.1, "4-100-16" => 100.1, "4-200-16" => 200.1, "4-300-16" => 300.102,//河南 16
  23. //联通
  24. //电信
  25. "6-10-16" => 10.1, "6-20-16" => 20.1, "6-30-16" => 30.102, "6-50-16" => 50.1, "6-100-16" => 100.1, "6-200-16" => 200.1, "6-300-16" => 300.102, "6-500-16" => 500.1,//河南 16
  26. ];
  27. }