|
|
@@ -263,15 +263,15 @@ class WxOpenController extends PublicController
|
|
|
$host = Yii::$app->request->getHostInfo();
|
|
|
if (strpos($host, 'huaml.com') !== false || strpos($host, 'huahb.cn') !== false) {
|
|
|
//花店
|
|
|
- Yii::$app->params['ptStyle'] = dict::getDict('ptStyle', 'hd');
|
|
|
+ Yii::$app->params['ptStyle'] = dict::getDict('ptStyle', 'hd');
|
|
|
$isOpen = 1;
|
|
|
} elseif (strpos($host, 'theflorist.cn') !== false || strpos($host, 'zhiguanhua.cn') !== false) {
|
|
|
//商城
|
|
|
- Yii::$app->params['ptStyle'] = dict::getDict('ptStyle', 'mall');
|
|
|
+ Yii::$app->params['ptStyle'] = dict::getDict('ptStyle', 'mall');
|
|
|
$isOpen = 3;
|
|
|
} elseif (strpos($host, 'hzghd.com') !== false || strpos($host, 'wixhb.com') !== false) {
|
|
|
//供应商
|
|
|
- Yii::$app->params['ptStyle'] = dict::getDict('ptStyle', 'ghs');
|
|
|
+ Yii::$app->params['ptStyle'] = dict::getDict('ptStyle', 'ghs');
|
|
|
$isOpen = 2;
|
|
|
} else {
|
|
|
util::stop('域名无效');
|
|
|
@@ -392,7 +392,15 @@ class WxOpenController extends PublicController
|
|
|
|
|
|
//将第三方提交的代码包提交审核
|
|
|
if ($id == 9) {
|
|
|
- wxUtil::miniSubmitAudit($merchant, '', $isOpen);
|
|
|
+ $returnInfo = wxUtil::miniSubmitAudit($merchant, '', $isOpen);
|
|
|
+ echo "<pre>";
|
|
|
+ print_r($returnInfo);
|
|
|
+ $auditId = $returnInfo['auditid'] ?? '';
|
|
|
+ if (!empty($auditId)) {
|
|
|
+ $respond = wxUtil::speedupAudit($merchant, $auditId, $isOpen);
|
|
|
+ echo "加急审核{$auditId}";
|
|
|
+ print_r($respond);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
//查询最新一次提交的审核状态
|
|
|
@@ -410,6 +418,12 @@ class WxOpenController extends PublicController
|
|
|
if ($id == 12) {
|
|
|
wxUtil::rollbackCheck($merchant, $isOpen);
|
|
|
}
|
|
|
+
|
|
|
+ //撤回审核
|
|
|
+ if ($id == 13) {
|
|
|
+ wxUtil::queryQuota($merchant, $isOpen);
|
|
|
+ }
|
|
|
+
|
|
|
//生成 申请会员页 的小程序码
|
|
|
if ($id == 13) {
|
|
|
wxUtil::generateMemberCode($merchant, $isOpen);
|
|
|
@@ -490,7 +504,7 @@ class WxOpenController extends PublicController
|
|
|
public function actionApi()
|
|
|
{
|
|
|
$get = Yii::$app->request->get();
|
|
|
- $style = $get['style'] ?? dict::getDict('ptStyle','hd');
|
|
|
+ $style = $get['style'] ?? dict::getDict('ptStyle', 'hd');
|
|
|
$openData = file_get_contents('php://input');
|
|
|
if (isset ($openData) == false || empty($openData)) {
|
|
|
util::stop('has no post data');
|