|
|
@@ -591,7 +591,7 @@ class WechatService
|
|
|
$result = self::payment(false, $cid)->contract->apply(
|
|
|
$order
|
|
|
);
|
|
|
- var_dump($result);die();
|
|
|
+// var_dump($result);die();
|
|
|
return $result;
|
|
|
}
|
|
|
/**
|
|
|
@@ -623,4 +623,19 @@ class WechatService
|
|
|
@file_put_contents("quanju.txt", json_encode($result) . "-查询签约状态返回结果\r\n", 8);
|
|
|
return $result;
|
|
|
}
|
|
|
+ /**
|
|
|
+ * 查询签约订单
|
|
|
+ */
|
|
|
+ public static function querySignOrder($order_id,$cid=0)
|
|
|
+ {
|
|
|
+// $appid='wx5681205d1ef4d9d3';
|
|
|
+// $order = array_merge(compact('out_trade_no'), $options);
|
|
|
+// if ($order['detail'] == '') unset($order['detail']);
|
|
|
+// $order['notify_url']=Request::instance()->domain() . "/api/wechat/notify/" . $cid;
|
|
|
+ $result = self::payment(false, $cid)->order->queryByOutTradeNumber(
|
|
|
+ $order_id
|
|
|
+ );
|
|
|
+ @file_put_contents("quanju.txt", json_encode($result) . "-查询签约状态返回结果\r\n", 8);
|
|
|
+ return $result;
|
|
|
+ }
|
|
|
}
|