作者 lyh

gx

... ... @@ -44,7 +44,7 @@ class ProductController extends BaseController
$this->map['category_id'] = ['like','%'.$this->map['category_id'].'%'];
}
$this->map['project_id'] = $this->user['project_id'];
$filed = ['id', 'project_id', 'title', 'sort' ,'thumb', 'product_type' , 'route' ,
$filed = ['id', 'project_id', 'title', 'sort' ,'thumb', 'gallery' ,'product_type' , 'route' ,
'category_id', 'keyword_id', 'status', 'created_uid', 'created_at', 'updated_at'];
$lists = $product->lists($this->map,$this->page,$this->row,$this->order,$filed);
if(!empty($lists['list'])){
... ...
... ... @@ -224,9 +224,11 @@ class ProjectLogic extends BaseLogic
}
/**
* 保存付款续费
* @author zbj
* @date 2023/4/26
* @remark :保存付款续费
* @name :savePayment
* @author :lyh
* @method :post
* @time :2023/8/29 16:19
*/
protected function savePayment($param){
if(empty($param['payment'])){
... ... @@ -239,9 +241,11 @@ class ProjectLogic extends BaseLogic
}
/**
* 保存建站部署
* @author zbj
* @date 2023/4/26
* @remark :保存建站部署
* @name :saveDeployBuild
* @author :lyh
* @method :post
* @time :2023/8/29 16:19
*/
protected function saveDeployBuild($param){
if(empty($param['deploy_build'])){
... ...
... ... @@ -37,7 +37,8 @@ class UserLogic extends BaseLogic
*/
public function user_add(){
//验证当前用户是否存在
$info = $this->model->read(['mobile'=>$this->param['mobile']]);
$info = $this->model->read(['mobile'=>$this->param['mobile'],
'project_id'=>$this->user['project_id']]);
if($info !== false){
$this->fail('当前手机号码已注册');
}
... ... @@ -64,7 +65,8 @@ class UserLogic extends BaseLogic
public function user_edit(){
$condition = [
'id'=>['!=',$this->param['id']],
'mobile'=>$this->param['mobile']
'mobile'=>$this->param['mobile'],
'project_id'=>$this->user['project_id']
];
$info = $this->model->read($condition);
if($info !== false){
... ...