Example #1
0
 public function actionCheckgoodsorder()
 {
     //$result = VcosGoodsOrder::model()->count("is_read=:num",array(':num'=>'0'));
     $result = VcosMemberOrder::model()->count("is_read=:num", array(':num' => '0'));
     echo $result;
 }
Example #2
0
 public function actionChangestate()
 {
     $state = VcosMemberOrder::model()->findByPk($_POST['id']);
     $state->order_id = $_POST['id'];
     $state->order_status = $_POST['state'];
     $state->is_read = '1';
     if ($state->save() > 0) {
         echo '1';
     } else {
         echo '0';
     }
 }