|
|
|
@ -260,4 +260,82 @@ class Wxserve extends Controller |
|
|
|
|
} |
|
|
|
|
return $this->renderError($msg); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* @notes:设置域名 |
|
|
|
|
* @return Json |
|
|
|
|
* @author: wanghousheng |
|
|
|
|
*/ |
|
|
|
|
public function setDomain(): Json |
|
|
|
|
{ |
|
|
|
|
$msg = 'appid不能为空'; |
|
|
|
|
$domain = $this->request->domain(true); |
|
|
|
|
$appid = $this->request->get('appid', $domain); |
|
|
|
|
if ($appid) { |
|
|
|
|
$obj = new Server(); |
|
|
|
|
$msg = $obj->setDomain($appid, $domain); |
|
|
|
|
if ($msg == 'ok') { |
|
|
|
|
return $this->renderSuccess('success'); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
return $this->renderError($msg); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* @notes:设置隐私 |
|
|
|
|
* @return Json |
|
|
|
|
* @author: wanghousheng |
|
|
|
|
*/ |
|
|
|
|
public function privacySetting(): Json |
|
|
|
|
{ |
|
|
|
|
$msg = 'appid不能为空'; |
|
|
|
|
$appid = $this->request->get('appid'); |
|
|
|
|
if ($appid) { |
|
|
|
|
$obj = new Server(); |
|
|
|
|
$msg = $obj->getPrivacySetting($appid); |
|
|
|
|
if ($msg == 'ok') { |
|
|
|
|
return $this->renderSuccess('success'); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
return $this->renderError($msg); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* @notes:设置业务域名 |
|
|
|
|
* @return Json |
|
|
|
|
* @author: wanghousheng |
|
|
|
|
*/ |
|
|
|
|
public function modifyJumpDomain(): Json |
|
|
|
|
{ |
|
|
|
|
$msg = 'appid不能为空'; |
|
|
|
|
$domain = $this->request->domain(true); |
|
|
|
|
$appid = $this->request->get('appid'); |
|
|
|
|
if ($appid) { |
|
|
|
|
$obj = new Server(); |
|
|
|
|
$msg = $obj->modifyJumpDomain($appid, $domain); |
|
|
|
|
if ($msg == 'ok') { |
|
|
|
|
return $this->renderSuccess('success'); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
return $this->renderError($msg); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* @notes:设置订单页 |
|
|
|
|
* @return Json |
|
|
|
|
* @author: wanghousheng |
|
|
|
|
*/ |
|
|
|
|
public function setOrderPath(): Json |
|
|
|
|
{ |
|
|
|
|
$msg = 'appid不能为空'; |
|
|
|
|
$appid = $this->request->get('appid'); |
|
|
|
|
if ($appid) { |
|
|
|
|
$obj = new Server(); |
|
|
|
|
$msg = $obj->applySetOrderPathInfo([$appid]); |
|
|
|
|
if ($msg == 'ok') { |
|
|
|
|
return $this->renderSuccess('success'); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
return $this->renderError($msg); |
|
|
|
|
} |
|
|
|
|
} |