|
|
@@ -628,6 +628,7 @@ class WechatService
|
|
|
*/
|
|
|
public static function querySignOrder($order_id,$cid=0)
|
|
|
{
|
|
|
+ $cid=12;
|
|
|
// $appid='wx5681205d1ef4d9d3';
|
|
|
// $order = array_merge(compact('out_trade_no'), $options);
|
|
|
// if ($order['detail'] == '') unset($order['detail']);
|
|
|
@@ -635,10 +636,12 @@ class WechatService
|
|
|
$result = self::payment(false, $cid)->order->queryByOutTradeNumber(
|
|
|
$order_id
|
|
|
);
|
|
|
- @file_put_contents("quanju.txt", json_encode($result) . "-查询签约状态返回结果\r\n", 8);
|
|
|
+ @file_put_contents("quanju2.txt", json_encode($result) . "-查询签约状态返回结果\r\n", 8);
|
|
|
if ($result['return_code'] == 'SUCCESS' && $result['trade_state_desc'] == '支付成功'){
|
|
|
- LaveMonth::where(['order_id' => $order_id])->update(['status' => 1]); //修改订单状态
|
|
|
+ $time=strtotime($result['time_end']);
|
|
|
+ LaveMonth::where(['order_id' => $order_id])->update(['status' => 1,'paytime'=>$time]); //修改订单状态
|
|
|
}
|
|
|
+
|
|
|
return $result;
|
|
|
}
|
|
|
/**
|