|
|
@@ -28,6 +28,7 @@ class Shop extends Api {
|
|
|
'token' => array('name' => 'token', 'type' => 'string', 'desc' => '用户token'),
|
|
|
'name' => array('name' => 'name', 'type' => 'string', 'desc' => '店铺名称'),
|
|
|
'thumb' => array('name' => 'thumb', 'type' => 'string', 'desc' => '店铺图片'),
|
|
|
+ 'type' => array('name' => 'type', 'type' => 'int', 'desc' => '店铺类型 1 乡村云店 2 都市云店 3 一线云店 4 其他'),
|
|
|
'username' => array('name' => 'username', 'type' => 'string', 'desc' => '姓名'),
|
|
|
'cardno' => array('name' => 'cardno', 'type' => 'string', 'desc' => '身份证号'),
|
|
|
'classid' => array('name' => 'classid', 'type' => 'string', 'desc' => '经营类目'),
|
|
|
@@ -356,6 +357,7 @@ class Shop extends Api {
|
|
|
$token=\App\checkNull($this->token);
|
|
|
$name=\App\checkNull($this->name);
|
|
|
$thumb=\App\checkNull($this->thumb);
|
|
|
+ $type=\App\checkNull($this->type);
|
|
|
$username=\App\checkNull($this->username);
|
|
|
$username=\App\checkNull($this->username);
|
|
|
$cardno=\App\checkNull($this->cardno);
|
|
|
@@ -406,6 +408,9 @@ class Shop extends Api {
|
|
|
$rs['msg']=\PhalApi\T('请上传店铺图片');
|
|
|
return $rs;
|
|
|
}
|
|
|
+ if(!$type){
|
|
|
+ $type = 4;
|
|
|
+ }
|
|
|
if(!$username){
|
|
|
$rs['code']=1001;
|
|
|
$rs['msg']=\PhalApi\T('请填写姓名');
|
|
|
@@ -604,6 +609,7 @@ class Shop extends Api {
|
|
|
$data=array(
|
|
|
'name'=>$name,
|
|
|
'thumb'=>\App\setCloudType($thumb),
|
|
|
+ 'type'=>$type,
|
|
|
'username'=>$username,
|
|
|
'cardno'=>$cardno,
|
|
|
'contact'=>$contact,
|