focus_hua.js 602 B

12345678910111213141516171819
  1. function getAddress(field) {
  2. const id = getQueryParameter.call({ url: field.url, key: "id" });
  3. const add ='http://103.45.68.47:6800/gy/gy_PGaA/p3p端口.php';
  4. const object = { url: add };
  5. const port = get.call(object);
  6. const hua = 'p3p://108.181.20.'; /*歐華*/
  7. const focus = 'p3p://108.181.32.'; /*焦點*/
  8. const id_check=id;
  9. const id_leng=id.length;
  10. if (id_check.slice(0,1)==0)
  11. {
  12. url = hua + port.slice(0,9) + '/' + id_check.slice(1,id_leng);
  13. }
  14. else
  15. {
  16. url = focus + port.slice(13,22) + '/' + id;
  17. }
  18. return JSON.stringify({ url: url });
  19. }