Exemple #1
0
 public function bind()
 {
     $info = array();
     $field = "m.user_phone,m.user_email,m.user_name";
     //$pre = C('DB_PREFIX');
     //$result = M("members m")->field($field)->join("{$pre}member_info mi ON m.id=mi.uid")->where("m.id={$this->uid}")->find();
     $result = M("members m")->field($field)->where("m.id={$this->uid}")->find();
     $username = $result['user_name'];
     $telephone = $result['user_phone'];
     $email = $result['user_email'];
     import("ORG.Huifu.Huifu");
     $huifu = new Huifu();
     $huifu->userRegister($username, $telephone, $email);
 }