|
@@ -81,9 +81,9 @@ class JCouponController extends AdminController
|
|
|
$coding_num = (int)Yii::app()->request->getParam('coding_num','');
|
|
|
$gift_id = Yii::app()->request->getParam('gift_id','');
|
|
|
$channel = Yii::app()->request->getParam('bus_id','');
|
|
|
- $bus = Yii::app()->request->getParam('bus','');
|
|
|
+ $bus = (int)Yii::app()->request->getParam('bus','');
|
|
|
$expire_time = Yii::app()->request->getParam('expire_time_str','');
|
|
|
- if (!$bus || !$num ||!$channel || !$gift_id || !$expire_time) {
|
|
|
+ if ($bus == 100 || !$num ||!$channel || !$gift_id || !$expire_time) {
|
|
|
CommonFn::requestAjax(false,'请填写完整信息');exit;
|
|
|
}
|
|
|
$gift = Gift::get(new MongoId($gift_id));
|