|
@@ -55,6 +55,9 @@ class Feeding extends Backend
|
|
|
$params = $this->preExcludeFields($params);
|
|
$params = $this->preExcludeFields($params);
|
|
|
$tid = Db::name('task')->where('bach',$params['bach'])->order('id desc')->find();
|
|
$tid = Db::name('task')->where('bach',$params['bach'])->order('id desc')->find();
|
|
|
$arr = [];
|
|
$arr = [];
|
|
|
|
|
+ if(empty($params['weight'])){
|
|
|
|
|
+ $this->error('投料数据不能为空');
|
|
|
|
|
+ }
|
|
|
foreach($params['weight'] as $k=>$v){
|
|
foreach($params['weight'] as $k=>$v){
|
|
|
if($v){
|
|
if($v){
|
|
|
$param['bach'] = $params['bach'];
|
|
$param['bach'] = $params['bach'];
|