Commit 04a8a82d authored by hujun's avatar hujun

length

parent 3abddda7
......@@ -534,18 +534,23 @@ class BrokerService
*/
public function updatePhone(array $data)
{
$result['status'] = 'successful';
$result['status'] = 'fail';
if (empty($data['id']) || empty($data['phone'])) {
$result['status'] = 'fail';
$result['msg'] = '参数错误';
return $result;
}
if (strlen($data['phone']) != 11) {
$result['msg'] = '手机参数错误';
return $result;
}
$save_data['phone'] = $data['phone'];
$save_data['id'] = $data['id'];
$id = $this->m_agent->saveAgent($save_data);
$redis = new RedisCacheService();
$redis->agentCache($id);
$result['status'] = 'successful';
return $result;
}
}
\ No newline at end of file
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