mirror of
https://gitee.com/technical-laohu/mpay.git
synced 2025-12-26 01:15:58 +08:00
运行时目录优化
This commit is contained in:
@@ -14,4 +14,8 @@ class IndexController
|
||||
}
|
||||
return View::fetch();
|
||||
}
|
||||
public function test()
|
||||
{
|
||||
return runtime_path();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -280,7 +280,7 @@ class PayController
|
||||
return '参数错误';
|
||||
}
|
||||
$is_user = User::checkUser($pid, $sign);
|
||||
$path = '../runtime/order.json';
|
||||
$path = runtime_path() . 'order.json';
|
||||
if ($is_user) {
|
||||
$orders = Order::scope('activeOrder')->field('id,pid,aid,cid,patt')->select();
|
||||
if (!file_exists($path)) {
|
||||
|
||||
Reference in New Issue
Block a user