_getAccountId(); $netId = getReqVal('net_id', 0); $address = getReqVal('address', 0); $symbol = getReqVal('symbol', 0); $precision = getReqVal('precision', 0); $type = getReqVal('type', 0); if ( ! $netId){ $this->_rspErr(1,'param netId error'); return; }elseif( ! $address){ $this->_rspErr(1,'param address error'); return; }elseif( ! $symbol){ $this->_rspErr(1,'param symbol error'); return; }elseif( ! $precision){ $this->_rspErr(1,'param precision error'); return; }elseif( ! $type){ $this->_rspErr(1,'param type error'); return; } Currency::addCurrency(array( 'net_id' => $netId, 'address' => $address, 'symbol' => $symbol, 'precision' => $precision, 'type' => $type, )); $this->_rspOk(); } public function currencyList(){ $list = Currency::getCurrencyList(); $this->_rspData(array( 'list'=>$list )); } }