north 7 years ago
parent
commit
51215515dd
1 changed files with 2 additions and 0 deletions
  1. 2 0
      www/protected/modules/j/models/JCoupon.php

+ 2 - 0
www/protected/modules/j/models/JCoupon.php

@@ -68,12 +68,14 @@ class JCoupon extends MongoAr
     }
     public static function getByPwd($pwd) {
         $criteria = new EMongoCriteria();
+        $pwd = strtolower($pwd);
         $criteria->pwd('==', $pwd);
         $model = self::model()->findAll($criteria);
         return $model;
     }
     public static function getByPwdOne($pwd) {
         $criteria = new EMongoCriteria();
+        $pwd = strtolower($pwd);
         $criteria->pwd('==', $pwd);
 //        if ($num) {
 //            $criteria->coding_num('==', $num);