|
|
@ -3,24 +3,25 @@ declare (strict_types=1); |
|
|
|
|
|
|
|
|
|
|
|
namespace app\api\controller; |
|
|
|
namespace app\api\controller; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
use app\common\library\wxserver\Server; |
|
|
|
use app\common\model\WxserverAccount; |
|
|
|
use app\common\model\WxserverAccount; |
|
|
|
use cores\BaseController; |
|
|
|
use cores\BaseController; |
|
|
|
use think\db\exception\DataNotFoundException; |
|
|
|
use think\db\exception\DataNotFoundException; |
|
|
|
use think\db\exception\DbException; |
|
|
|
use think\db\exception\DbException; |
|
|
|
use think\db\exception\ModelNotFoundException; |
|
|
|
use think\db\exception\ModelNotFoundException; |
|
|
|
use think\facade\Db; |
|
|
|
use think\facade\Db; |
|
|
|
|
|
|
|
use think\response\Json; |
|
|
|
|
|
|
|
|
|
|
|
class Wxserver extends BaseController |
|
|
|
class Wxserver extends BaseController |
|
|
|
{ |
|
|
|
{ |
|
|
|
|
|
|
|
|
|
|
|
public function index() |
|
|
|
public function index(): Json |
|
|
|
{ |
|
|
|
{ |
|
|
|
$appid = 'wx74c7a92ae5ffbcb6'; |
|
|
|
$appid = ['wxd87b1a7332d974d0', 'wxe3ed157849bd07b5', 'wx896520d9d03f108f', 'wx35f6c598106b9149', 'wx3f8c109fa934324f']; |
|
|
|
$obj = new \app\common\library\wxserver\Server(); |
|
|
|
$appid = array_merge($appid, ['wx1814307a39775007', 'wx74c7a92ae5ffbcb6', 'wx50b90d4df20da3ec', 'wxe843b6d7a4bd3389']); |
|
|
|
$arr = $obj->release('wxe3ed157849bd07b5'); |
|
|
|
$obj = new Server(); |
|
|
|
$arr2 = $obj->release('wx896520d9d03f108f'); |
|
|
|
$data = $obj->applySetOrderPathInfo($appid); |
|
|
|
return $this->renderSuccess(['arr' => $arr, 'arr2' => $arr2]); |
|
|
|
return $this->renderSuccess(['result' => $data]); |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public function verifyTicket() |
|
|
|
public function verifyTicket() |
|
|
|