Commit c6a6b6e6 authored by jianghaiming's avatar jianghaiming

update:set

parent ac2c46c4
...@@ -12,7 +12,7 @@ class MarketingException extends BaseException ...@@ -12,7 +12,7 @@ class MarketingException extends BaseException
protected $cus = [ protected $cus = [
0 => '活动名称不能为空', 0 => '活动名称不能为空',
1 => '活动名称不能大于40', 1 => '活动名称不能大于50',
2 => '活动名称不合法', 2 => '活动名称不合法',
3 => '(一级)佣金率不能为空', 3 => '(一级)佣金率不能为空',
4 => '(二级)佣金率不能为空', 4 => '(二级)佣金率不能为空',
......
...@@ -165,9 +165,9 @@ class MarketingService ...@@ -165,9 +165,9 @@ class MarketingService
throw new MarketingException(['cus'=>3]); throw new MarketingException(['cus'=>3]);
} }
if (empty($secondCommissionRate)) { // if (empty($secondCommissionRate)) {
throw new MarketingException(['cus'=>4]); // throw new MarketingException(['cus'=>4]);
} // }
if (self::utf8Strlen($marketingName) > 50) { if (self::utf8Strlen($marketingName) > 50) {
throw new MarketingException(['cus'=>1]); throw new MarketingException(['cus'=>1]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment