作者 sgj
1 个管道 的构建 通过 耗费 0 秒

add stop equipment

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