Exemplo n.º 1
0
 public function checkcodeAction()
 {
     $codes = $this->getRequest()->getParam('code');
     $result = array(result => 0, code => array());
     if ($codes) {
         foreach (explode(',', $codes) as $code) {
             $h = new Application_Model_Helpers();
             $openNumber = $h->getOpenReqOrderByCode($code);
             if (count($openNumber) > 0) {
                 $result['result'] = 1;
                 $result['code'][] = $code;
             }
         }
     }
     echo Zend_Json::encode($result);
     exit;
 }