|
@@ -193,6 +193,17 @@ class Express extends Start_Controller {
|
|
|
$post['describecode'] = $post['describecode'].$ddata['id']."|";
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ if($post['sbjz_min']*1 > $post['sbjz']*1){
|
|
|
+ echo json_encode(array('msg'=>'最低申报价不能大于最高申报价!!!','success'=>false));exit;
|
|
|
+ }
|
|
|
+ if($post['shouldmoney_min']*1 > $post['shouldmoney']*1){
|
|
|
+ echo json_encode(array('msg'=>'最低订单金额不能大于最高订单金额!!!','success'=>false));exit;
|
|
|
+ }
|
|
|
+ if($post['weight_limit_min']*1 > $post['weight_limit']*1){
|
|
|
+ echo json_encode(array('msg'=>'最低快递限重不能大于最高快递限重!!!','success'=>false));exit;
|
|
|
+ }
|
|
|
+
|
|
|
if($this->express->insert($post))
|
|
|
{
|
|
|
echo json_encode(array('msg'=>'添加成功','success'=>true));exit;
|
|
@@ -277,6 +288,17 @@ class Express extends Start_Controller {
|
|
|
$describecodemoon = $describecodemoon.$ddata['id']."|";
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ if($post['sbjz_min']*1 > $post['sbjz']*1){
|
|
|
+ echo json_encode(array('msg'=>'最低申报价不能大于最高申报价!!!','success'=>false));exit;
|
|
|
+ }
|
|
|
+ if($post['shouldmoney_min']*1 > $post['shouldmoney']*1){
|
|
|
+ echo json_encode(array('msg'=>'最低订单金额不能大于最高订单金额!!!','success'=>false));exit;
|
|
|
+ }
|
|
|
+ if($post['weight_limit_min']*1 > $post['weight_limit']*1){
|
|
|
+ echo json_encode(array('msg'=>'最低快递限重不能大于最高快递限重!!!','success'=>false));exit;
|
|
|
+ }
|
|
|
+
|
|
|
$post['packing'] = $express['packing'].$packingmoon;
|
|
|
$post['describecode'] = $express['describecode'].$describecodemoon;
|
|
|
if($this->express->save($post,$id))
|