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