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