|
@@ -2168,5 +2168,25 @@ class Orders extends Auth {
|
|
|
}
|
|
|
|
|
|
}
|
|
|
+ public function getTime(){
|
|
|
+ $type = input('type');
|
|
|
+ $start = input('start');
|
|
|
+ $v = Db::name('convey_cate')
|
|
|
+ ->where('id',$type)
|
|
|
+ ->where('enable',1)
|
|
|
+ ->where('del',0)
|
|
|
+ ->find();
|
|
|
+ if($v['time_id'] > 0){
|
|
|
+ $time = Db::name('time')
|
|
|
+ ->where('id',$v['time_id'])
|
|
|
+ ->find();
|
|
|
+ $v['xq_time'] = $start?$start:date('Y-m-d H:i');
|
|
|
+ $v['ywc_time'] = date('Y-m-d H:i',strtotime($v['xq_time']) + 60*$time['bz_time']);
|
|
|
+ }else{
|
|
|
+ $v['xq_time'] = $start?$start:date('Y-m-d H:i');
|
|
|
+ $v['ywc_time'] = '';
|
|
|
+ }
|
|
|
+ $this->success('','',$v);
|
|
|
+ }
|
|
|
|
|
|
}
|