存折传递网络服务网址不通过PHP工作

时间:2017-04-08 11:00:26

标签: passbook passkit

下面是我的请求json

{"description":"Offer Pass","formatVersion":1,"organizationName":"Skywire","passTypeIdentifier":"aaaaaa","serialNumber":"123456","teamIdentifier":"vvvvvvv","generic":{"primaryFields":[{"key":"name","label":"MEMBER NAME","value":"aaaaKanodia"}],"auxiliaryFields":[{"key":"key_2","label":"Membership Number","value":"P0120417"},{"key":"key_1","label":"Expire Date","value":"04\/26\/2018"}],"backFields":[{"key":"contact","label":"CONTACT","value":"For any membership queries or feedback mail us at infor@skywire.co.in\n"},{"key":"privilages","label":"PRIVILAGES","value":"Delhi : chroma, salesindia 
Mumbai : chroma, raj electronics"}]},"barcode":{"format":"PKBarcodeFormatQR","message":"P0120417","messageEncoding":"iso-8859-1"},"backgroundColor":"rgb(255,255,255)","labelColor":"rgb(0, 187, 211)","stripColor":"rgb(30, 30, 30)","foregroundColor":"rgb(0, 0, 0)","relevantDate":"2017-04-05T09:00-08:00","logoText":"","locations":[{"latitude":22.996,"longitude":72.4997}],"webServiceURL":"https:\/\/www.test.com\/qa\/skywire\/passAPI-ios\/examples\/index.php","authenticationToken":"1ef899002ccf3b9ed2f3106a38dd9cbb"}

这是我的index.php

$ myfile = fopen(" newfile.txt"," w")或死亡("无法打开文件!"); fwrite($ myfile,json_encode($ _ SERVER));

但是在ftp中没有生成newfile.txt文件。 任何人都可以帮忙。

0 个答案:

没有答案