|
|
@@ -834,6 +834,20 @@ class UserRepository extends BaseRepository
|
|
834
|
834
|
* @author xaboy
|
|
835
|
835
|
* @day 2020-05-07
|
|
836
|
836
|
*/
|
|
|
837
|
+ public function changeProFormLevel($id)
|
|
|
838
|
+ {
|
|
|
839
|
+ return Elm::createForm(Route::buildUrl('systemMerchantChangeProLevel', compact('id'))->build(), [
|
|
|
840
|
+ Elm::input('level_account', '节点人(上级)')->required()->placeholder("请填写节点人(上级)手机号")
|
|
|
841
|
+ ])->setTitle('修改用户节点人(上级)');
|
|
|
842
|
+ }
|
|
|
843
|
+
|
|
|
844
|
+ /**
|
|
|
845
|
+ * @param $id
|
|
|
846
|
+ * @return Form
|
|
|
847
|
+ * @throws FormBuilderException
|
|
|
848
|
+ * @author xaboy
|
|
|
849
|
+ * @day 2020-05-07
|
|
|
850
|
+ */
|
|
837
|
851
|
public function changeAwardForm($id)
|
|
838
|
852
|
{
|
|
839
|
853
|
$user = $this->dao->get($id);
|
|
|
@@ -3024,6 +3038,20 @@ class UserRepository extends BaseRepository
|
|
3024
|
3038
|
|
|
3025
|
3039
|
}
|
|
3026
|
3040
|
|
|
|
3041
|
+ public function update_level_uid($uid, $level_account){
|
|
|
3042
|
+ $level = Db::name("user")->where('account',$level_account)->field("uid")->find();
|
|
|
3043
|
+ if($level){
|
|
|
3044
|
+ try{
|
|
|
3045
|
+ return Db::name("user")->where(["uid"=>$uid])->update(['level_id'=>$level['uid']]);
|
|
|
3046
|
+ }catch (\Exception $e) {
|
|
|
3047
|
+ return false;
|
|
|
3048
|
+ }
|
|
|
3049
|
+ }else{
|
|
|
3050
|
+ return false;
|
|
|
3051
|
+ }
|
|
|
3052
|
+
|
|
|
3053
|
+ }
|
|
|
3054
|
+
|
|
3027
|
3055
|
|
|
3028
|
3056
|
/*获取协议列表*/
|
|
3029
|
3057
|
public function getXieYi(){
|