Commit 35f11754 authored by hujun's avatar hujun

error log edit

parent c8e2cf81
......@@ -135,7 +135,7 @@ class Broker extends Basic
}
$content = $params['content'];
$labels_id = $params['labels_id'];
$labels_id = empty($params['labels_id'])? '':$params['labels_id'];
$user_id = $params['user_id'];
$agent_id = $params['agent_id'];
$type = $params['type'];
......@@ -234,7 +234,7 @@ class Broker extends Basic
return $this->response("300", "参数不全", [ 'remote_groupid' => '' ]);
}
$searchdate = $params['searchdate'];
$searchdate = empty($params['searchdate']) ? '':$params['searchdate'];
$pagenum = isset($params['pagenum']) ? $params['pagenum'] : 1;
$pagesize = 15;
$user_id = $params['user_id'];
......
......@@ -44,7 +44,7 @@ class Client extends Basic
header('Access-Control-Allow-Origin:*');
$table=New Agents();
$data=array();
if ($this->params['user_nick'] || $this->params['user_nick'] || $this->params['id']) {
if (!empty($this->params['user_nick']) || !empty($this->params['id'])) {
if ($this->request->isPost()) {
if (!empty($this->params['id'])) {
//编辑
......
......@@ -39,6 +39,7 @@ class Basic extends Controller
protected $agentPhone;
protected $timeStamp_;
protected $filterVerify = array(
'broker/login',
'broker/token',
'broker/getShopList',
'broker/getShopDetail',
......
......@@ -71,8 +71,8 @@ class Remarks extends Model
->select();
//echo $this->getLastSql();
if(!$data){
return $result;
}
return $result;
}
/****************************处理客户电话****************************************/
foreach($data as $k=> $li) {
$phonestr = htmlentities(trim($li["phpone"]));
......
......@@ -182,7 +182,7 @@ class Users extends Model
*/
public function edit($data, $id = 0) {
$insert_data['user_nick'] = $data['user_nick'];
if($data['user_phone']){
if(!empty($data['user_phone'])){
$insert_data['user_phone'] = $data['user_phone'];
}
$insert_data['sex'] = $data['sex'];
......
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