Commit 5b758e40 by Tobin

api issue region image

parent 7b11b308
...@@ -139,7 +139,7 @@ class Api_model extends CI_Model { ...@@ -139,7 +139,7 @@ class Api_model extends CI_Model {
function popular() { function popular() {
try { try {
$rs = $this->db->select('id,name')->where('status',1)->get('region')->result(); $rs = $this->db->select('id,name,region_icon AS image')->where('status',1)->get('region')->result();
if(count($rs) > 0) { if(count($rs) > 0) {
$res = array('status'=>1,'data'=>$rs); $res = array('status'=>1,'data'=>$rs);
} else { } else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment