...
|
...
|
@@ -132,15 +132,12 @@ class AdminEquipmentController extends AdminBaseController{ |
|
|
$map['state']=1;
|
|
|
$order=\db('order')->where($map)->find();
|
|
|
/*结束订单*/
|
|
|
dump($order);
|
|
|
|
|
|
$data['end_time']=time();
|
|
|
$info['price']=action('Order/onlyGetPrice',[$order['users_id'],$order['start_time'],time()]);
|
|
|
dump($info);
|
|
|
exit;
|
|
|
$data['state']=2;
|
|
|
$data['price']=$info['price'];
|
|
|
$data['time']=$info['time'];
|
|
|
|
|
|
$data['time']=ceil((time()-$order['start_time'])/3600);
|
|
|
Db::startTrans();
|
|
|
try{
|
|
|
Db::name('equipment')->where('id',$id)->update(['use'=>0]);
|
...
|
...
|
|