...
|
...
|
@@ -133,6 +133,8 @@ class AdminEquipmentController extends AdminBaseController{ |
|
|
/*结束订单*/
|
|
|
$data['end_time']=time();
|
|
|
$info=action('Order/getPrice',[$order['users_id'],$order['start_time'],time()]);
|
|
|
dump($info);
|
|
|
exit;
|
|
|
$data['state']=2;
|
|
|
$data['price']=$info['price'];
|
|
|
$data['time']=$info['time'];
|
...
|
...
|
@@ -143,6 +145,7 @@ class AdminEquipmentController extends AdminBaseController{ |
|
|
echo \db('equipment')->getLastSql();
|
|
|
\db('order')->where($map)->update($data);
|
|
|
echo \db('order')->getLastSql();
|
|
|
echo '<br />';
|
|
|
} catch (\Exception $e){
|
|
|
Db::rollback();
|
|
|
$this->error('操作失败!');
|
...
|
...
|
|