| | |
| | | use think\Exception; |
| | | use think\Validate; |
| | | |
| | | |
| | | /** |
| | | * 代理配置 |
| | | * |
| | |
| | | if($item['indirect_primary_count'] == "") $this->error('有效间接初级人数不能为空'); |
| | | if($item['own_monthly_commission'] == "") $this->error('上月结算佣金不能为空'); |
| | | break; |
| | | case 3: |
| | | if($item['level_name'] == "") $this->error('高级代理名称未配置'); |
| | | if($item['own_commission_rate'] == "") $this->error('自购佣金比例不能为空'); |
| | | if($item['direct_commission_rate'] == "") $this->error('直属初级佣金比例不能为空'); |
| | | if($item['direct_intermediate_rate'] == "") $this->error('直属中级佣金比例不能为空'); |
| | | if($item['indirect_commission_rate'] == "") $this->error('间接初级佣金比例不能为空'); |
| | | if($item['direct_primary_count'] == "") $this->error('有效直属初级人数不能为空'); |
| | | if($item['indirect_primary_count'] == "") $this->error('有效间接初级人数不能为空'); |
| | | if($item['own_monthly_commission'] == "") $this->error('上月结算佣金不能为空'); |
| | | if($item['accumulated_commission'] == "") $this->error('累计结算佣金不能为空'); |
| | | case 3 : |
| | | if($item['level_name'] == "") $this->error('高级代理名称未配置'); |
| | | if($item['own_commission_rate'] == "") $this->error('自购佣金比例不能为空'); |
| | | if($item['direct_commission_rate'] == "") $this->error('直属初级佣金比例不能为空'); |
| | | if($item['direct_intermediate_rate']== "") $this->error('直属中级佣金比例不能为空'); |
| | | if($item['indirect_commission_rate']== "") $this->error('间接初级佣金比例不能为空'); |
| | | // if($item['direct_primary_count'] == "") $this->error('有效直属初级人数不能为空'); |
| | | // if($item['indirect_primary_count']== "") $this->error('有效间接初级人数不能为空'); |
| | | if($item['own_monthly_commission'] == "") $this->error('上月结算佣金不能为空'); |
| | | if($item['accumulated_commission'] == "") $this->error('累计结算佣金不能为空'); |
| | | break; |
| | | } |
| | | } |