|
|
@@ -245,6 +245,9 @@ class ShopController extends BaseController {
|
|
|
if($userInfo['IS_DEC'] == 1 && !empty($post['userName']) && $post['userName'] != $userInfo['USER_NAME']){
|
|
|
return static::notice(Yii::t('app', 'stockistDoesNotExist'), 400);
|
|
|
}
|
|
|
+ if(!empty($post['userName'])){
|
|
|
+ return static::notice(Yii::t('app', 'decUserNameIsWrong'), 400);
|
|
|
+ }
|
|
|
//查询报单编号是否存在
|
|
|
if($post['userName'] && $userInfo['IS_DEC'] == 0){
|
|
|
$userId = Info::getUserIdByUserName($post['userName']);
|