我創建了一個通過PHP的通行證,並嘗試在iOS和iPhone上,一切工作正常。生成存摺通行證web服務url不工作通過php
現在我有「更新我的通行證」的問題,問題是我沒有得到任何有效載荷回到我的服務器。
我有一個SSL證書。在我的服務器上運行。這是Pass一代的JSON文件。
{"description":"Your Booking @ XXXXXX","formatVersion":1,
"organizationName":"xxx Pte Ltd",
"passTypeIdentifier":"pass.com.xxx",
"serialNumber":"R_TheTtSFAmc7U",
"teamIdentifier":"3WZWSR88QK",
"locations":[{"longitude":-122.3748889,"latitude":37.6189722},
{"longitude":-122.03118,"latitude":37.33182}],
"eventTicket":{"headerFields":[{"key":"booking","label":"Booking","value":"xxxxx"}],
"primaryFields":[{"key":"date","label":"Booking date","value":"JAN 15"}],
"secondaryFields":[{"key":"hour","label":"Booking time","value":"19:00"}],
"auxiliaryFields":[{"key":"address","label":"Address","value":"90 Club Street"}],
"backFields":[{"key":"bookingname","label":"Booking","value":"XXXX"},
{"key":"member-code","label":"Spin Code","value":"xxxx"}]},
"barcode":{"format":"PKBarcodeFormatQR",
"message":"{\"membCode\":\"xxx\"}","messageEncoding":"iso88591"},"foregroundColor":" rgb(255, 255, 255)",
"backgroundColor":"rgb(60, 65, 76)"
"webServiceURL":"https://dev.xxx.com/passbook/passwallet.php","authenticationToken":"dnMua2FsYUB3ZWVsb3kuY29tOndlZWxveTAx"}
passwallet.php
$request = explode("/", substr(@$_SERVER['REQUEST_URI'], 1));
var_dump($request);
$data1 = $passUpdate->snconnect($request);
$inputJSON = file_get_contents('php://input');
$push_token = json_decode($inputJSON, TRUE);
$push_token = $push_token->pushToken;
//device token store in db
$data2 = $passUpdate->snconnect($push_token);
任何幫助將不勝感激,謝謝 ,
什麼是你的服務器和PHP日誌。刷新通行證時,設備日誌在Xcode中顯示的內容是什麼? – PassKit