提交 a196caeb 编写于 作者: J jianbo

修复支付一个隐藏的bug

上级 c056f08d
......@@ -84,7 +84,7 @@ class RAW_REST_Payment_Controller extends WP_REST_Controller{
$input->SetTotal_fee(strval($totalFee*100));
//$input->SetTotal_fee(strval($totalFee));
$input->SetTime_start(date("YmdHis"));
$input->SetTime_expire(date("YmdHis", time() + 600));
$input->SetTime_expire(date("YmdHis", time() + 6000));
$input->SetNotify_url(get_rest_url( null, $this->namespace . '/' . $this->resource_name . '/notify' ) );
$input->SetTrade_type( 'JSAPI' );
$input->SetOpenid($openId);
......
......@@ -475,7 +475,7 @@ class RAM_WxPayApi
//上报逻辑
$endTimeStamp = self::getMillisecond();
$objInput = new WxPayReport();
$objInput = new RAM_WxPayReport();
$objInput->SetInterface_url($url);
$objInput->SetExecute_time_($endTimeStamp - $startTimeStamp);
//返回状态码
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册