|
|
@ -280,7 +280,10 @@ class IndexCoach extends ApiRest |
|
|
|
{ |
|
|
|
{ |
|
|
|
|
|
|
|
|
|
|
|
$input = $this->_param; |
|
|
|
$input = $this->_param; |
|
|
|
|
|
|
|
if (empty($this->cap_info['id'])) { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$this->errorMsg('你还不是技师'); |
|
|
|
|
|
|
|
} |
|
|
|
$dis[] = ['a.uniacid', '=', $this->_uniacid]; |
|
|
|
$dis[] = ['a.uniacid', '=', $this->_uniacid]; |
|
|
|
|
|
|
|
|
|
|
|
$dis[] = ['a.coach_id', '=', $this->cap_info['id']]; |
|
|
|
$dis[] = ['a.coach_id', '=', $this->cap_info['id']]; |
|
|
@ -422,7 +425,13 @@ class IndexCoach extends ApiRest |
|
|
|
'text' => $input['text'], |
|
|
|
'text' => $input['text'], |
|
|
|
|
|
|
|
|
|
|
|
'type' => $input['type'], |
|
|
|
'type' => $input['type'], |
|
|
|
|
|
|
|
'chikaren' => !empty($input['chikaren'])?$input['chikaren']:'', |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
'kaihuhang' => !empty($input['kaihuhang'])?$input['kaihuhang']:'', |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
'suoshuzhihang' => !empty($input['suoshuzhihang'])?$input['suoshuzhihang']:'', |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
'yinhangkahao' => !empty($input['yinhangkahao'])?$input['yinhangkahao']:'', |
|
|
|
'apply_transfer' => !empty($input['apply_transfer'])?$input['apply_transfer']:0 |
|
|
|
'apply_transfer' => !empty($input['apply_transfer'])?$input['apply_transfer']:0 |
|
|
|
|
|
|
|
|
|
|
|
]; |
|
|
|
]; |
|
|
@ -921,6 +930,7 @@ class IndexCoach extends ApiRest |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public function getOrderNum() |
|
|
|
public function getOrderNum() |
|
|
|
{ |
|
|
|
{ |
|
|
|
|
|
|
|
|
|
|
|
$data = [ |
|
|
|
$data = [ |
|
|
|
'wait' => $this->order_model->getOrderNum([['uniacid', '=', $this->_uniacid], ['coach_id', '=', $this->cap_info['id']], ['pay_type', '=', 2]]), |
|
|
|
'wait' => $this->order_model->getOrderNum([['uniacid', '=', $this->_uniacid], ['coach_id', '=', $this->cap_info['id']], ['pay_type', '=', 2]]), |
|
|
|
'start' => $this->order_model->getOrderNum([['uniacid', '=', $this->_uniacid], ['coach_id', '=', $this->cap_info['id']], ['pay_type', 'in', [3, 4, 5]]]), |
|
|
|
'start' => $this->order_model->getOrderNum([['uniacid', '=', $this->_uniacid], ['coach_id', '=', $this->cap_info['id']], ['pay_type', 'in', [3, 4, 5]]]), |
|
|
|