Commit 1c23cdf5 authored by zhz's avatar zhz

evaluate

parent b14caacf
......@@ -223,7 +223,7 @@ class EvaluationServiceModel extends \Business\AbstractModel {
foreach ($param['goods'] as $v){
$v['goodsId'] || \Error\ErrorModel::throwException(\Error\CodeConfigModel::emptyGoodsId);
$v['scores'] || \Error\ErrorModel::throwException(\Error\CodeConfigModel::emptyScores);
if(!empty($v['content']) && ( mb_strlen($v['content']) < 6 || mb_strlen($v['content']) > 500))) {
if(!empty($v['content']) && ( mb_strlen($v['content']) < 6 || mb_strlen($v['content']) > 500 )) {
\Error\ErrorModel::throwException(\Error\CodeConfigModel::wrongEvaluation);
}
}
......
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