|
|
|
@ -5,6 +5,7 @@ namespace app\admin\controller; |
|
|
|
|
|
|
|
|
|
use app\common\library\wxserver\Wholesaler; |
|
|
|
|
use app\job\controller\Wxholesaler as WxserverJob; |
|
|
|
|
use cores\exception\BaseException; |
|
|
|
|
use PHPQRCode\QRcode; |
|
|
|
|
use think\db\exception\DbException; |
|
|
|
|
use think\facade\Db; |
|
|
|
@ -188,13 +189,17 @@ class Wxwholesaler extends Controller |
|
|
|
|
return $this->renderError('操作失败'); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** 单个操作发布体验版 |
|
|
|
|
* @throws BaseException |
|
|
|
|
*/ |
|
|
|
|
public function commitOne(): Json |
|
|
|
|
{ |
|
|
|
|
$appid = $this->request->get('appid'); |
|
|
|
|
$template_id = $this->request->get('template_id'); |
|
|
|
|
$obj = new Wholesaler(); |
|
|
|
|
$msg = $obj->privacyInfo($appid); |
|
|
|
|
if ($msg == 'ok') { |
|
|
|
|
$msg = $obj->submitAudit($appid); |
|
|
|
|
$msg = $obj->commit($appid, $template_id); |
|
|
|
|
if ($msg == 'ok') { |
|
|
|
|
return $this->renderSuccess('success'); |
|
|
|
|
} |
|
|
|
@ -239,6 +244,22 @@ class Wxwholesaler extends Controller |
|
|
|
|
return $this->renderError('操作失败'); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* @notes:单个提交正式版审核 |
|
|
|
|
* @return Json |
|
|
|
|
* @author: wanghousheng |
|
|
|
|
*/ |
|
|
|
|
public function auditOne(): Json |
|
|
|
|
{ |
|
|
|
|
$appid = $this->request->get('appid'); |
|
|
|
|
$obj = new Wholesaler(); |
|
|
|
|
$msg = $obj->submitAudit($appid); |
|
|
|
|
if ($msg == 'ok') { |
|
|
|
|
return $this->renderSuccess('success'); |
|
|
|
|
} |
|
|
|
|
return $this->renderError($msg); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* @notes:发布正式版前检查 |
|
|
|
|
* @return Json |
|
|
|
|