max hai 11 meses
pai
achega
6d22c3421a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      frontendApi/modules/v1/controllers/ShopController.php

+ 1 - 1
frontendApi/modules/v1/controllers/ShopController.php

@@ -246,7 +246,7 @@ class ShopController extends BaseController {
                 return static::notice(Yii::t('app', 'stockistDoesNotExist'), 400);
                 return static::notice(Yii::t('app', 'stockistDoesNotExist'), 400);
             }
             }
 
 
-            if(!empty($post['userName'])){
+            if(empty($post['userName'])){
                 return static::notice(Yii::t('app', 'decUserNameIsWrong'), 400);
                 return static::notice(Yii::t('app', 'decUserNameIsWrong'), 400);
             }
             }
             //查询报单编号是否存在
             //查询报单编号是否存在