|
|
@@ -34,10 +34,12 @@ class UserShowTemplate extends Model
|
|
|
* @param type $uid
|
|
|
*/
|
|
|
public function userBindTempInit($uid){
|
|
|
+ var_dump("xxx");
|
|
|
$count = $this->where("uid",$uid)->where("is_init",1)->count();
|
|
|
if($count<=0){
|
|
|
$initTemp = $this->where("is_init",1)->find();
|
|
|
if(!empty($initTemp)){
|
|
|
+ var_dump($initTemp);
|
|
|
$ocount = $this->where("uid",$uid)->where("is_default",1)->count();
|
|
|
$r = $this->insert([
|
|
|
"uid" => $uid,
|