...
|
...
|
@@ -9,6 +9,7 @@ use app\api\controller\v1\Base; |
|
|
use app\api\controller\Index;
|
|
|
use app\api\controller\v1\WxxcxPush;
|
|
|
use app\common\controller\Api;
|
|
|
use app\common\exception\UploadException;
|
|
|
use think\Db;
|
|
|
|
|
|
/**
|
...
|
...
|
@@ -1818,6 +1819,7 @@ class Car extends Base |
|
|
//下单五分钟后五收取手续费
|
|
|
$create_time=$order['create_time'];
|
|
|
$newtime=time()-$create_time;
|
|
|
try {
|
|
|
|
|
|
if($newtime<300){
|
|
|
// print_r([$create_time,$newtime]);
|
...
|
...
|
@@ -1889,7 +1891,14 @@ class Car extends Base |
|
|
'openid' => $userinfo['wx_xcx_openid'],
|
|
|
];
|
|
|
$f = \addons\epay\library\Service::submitOrder($params);
|
|
|
$this->success("请求成功", $f);
|
|
|
$data=[
|
|
|
"pay"=>$f,
|
|
|
"commission_price"=>$neworder['commission_price'],
|
|
|
];
|
|
|
$this->success("请求成功", $data);
|
|
|
} catch (UploadException $e) {
|
|
|
$this->error($e->getMessage());
|
|
|
}
|
|
|
}
|
|
|
|
|
|
} |
|
|
\ No newline at end of file |
...
|
...
|
|