|
|
@@ -349,7 +349,7 @@ class Taxi extends ApiController
|
|
|
->find($param['id']);
|
|
|
$user = $this->auth->user();
|
|
|
|
|
|
- var_dump($row);
|
|
|
+
|
|
|
if ($row) {
|
|
|
if (time() - $row['created_at'] < (60 * 10)) {
|
|
|
// return $this->ApiJson(-1, '10分钟内无法取消订单');
|
|
|
@@ -373,6 +373,7 @@ class Taxi extends ApiController
|
|
|
$cost_price = $total-$total_price;
|
|
|
}
|
|
|
}
|
|
|
+ var_dump($cost_price);
|
|
|
if ($row->paylog['pay_type'] == 'balance') {
|
|
|
model('common/Users')->changeBalance(
|
|
|
$user['id'],
|