...
|
...
|
@@ -156,10 +156,14 @@ class Order extends Api |
|
|
$param = $this->request->param();
|
|
|
$quota = Db::name('user')->where('id', $user_id)->value('sy_quota');
|
|
|
if ($quota != 0) {
|
|
|
if ($param['total'] > $quota) {
|
|
|
$this->error('下单金额大于总额度');
|
|
|
die;
|
|
|
}
|
|
|
echo '1';
|
|
|
}else{
|
|
|
echo '1';
|
|
|
}
|
|
|
die;
|
|
|
if ($param['total'] > $quota) {
|
|
|
$this->error('下单金额大于总额度');
|
|
|
die;
|
|
|
}
|
|
|
$arr = json_decode(htmlspecialchars_decode($param['data']), true);
|
|
|
foreach ($arr as $k => $v) {
|
...
|
...
|
|