|
@@ -93,6 +93,22 @@ class deliveryLogic
|
|
$sign = $this->_getSign($data);
|
|
$sign = $this->_getSign($data);
|
|
$headers = array('v_appkey: '.self::$appkey, 'v_sign: '.$sign, 'Content-Type: application/json');
|
|
$headers = array('v_appkey: '.self::$appkey, 'v_sign: '.$sign, 'Content-Type: application/json');
|
|
$result = http_post_data(self::$appURL,json_encode($data),$headers);
|
|
$result = http_post_data(self::$appURL,json_encode($data),$headers);
|
|
|
|
+
|
|
|
|
+ if(!empty($result) && is_array($result))
|
|
|
|
+ {
|
|
|
|
+ if($result['apiCode'] == 'success')
|
|
|
|
+ {
|
|
|
|
+ if(!empty($result['data']) && is_array($result['data']) && count($result['data']) > 0)
|
|
|
|
+ {
|
|
|
|
+ if(empty($result['data'][0]['status']) || $result['data'][0]['status'] != 1) {
|
|
|
|
+ Log::record("PUSHOMS ERR pay_sn=> $pay_sn",Log::ERR);
|
|
|
|
+ } else {
|
|
|
|
+ Log::record("PUSHOMS SUCCESS pay_sn=> $pay_sn",Log::DEBUG);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
Log::record("post data={$result}",Log::DEBUG);
|
|
Log::record("post data={$result}",Log::DEBUG);
|
|
return $result;
|
|
return $result;
|
|
}
|
|
}
|