24 lines
537 B
PHP
24 lines
537 B
PHP
<?php
|
|
namespace addon\weapp\model;
|
|
use EasyWeChat\Kernel\BaseClient;
|
|
class Client extends BaseClient
|
|
{
|
|
|
|
public function isTradeManaged($appid){
|
|
$result = $this->httpPostJson('wxa/sec/order/is_trade_managed',['appid'=>$appid]);
|
|
return $result;
|
|
}
|
|
|
|
|
|
/**
|
|
* 获取手机号
|
|
* @param string $code
|
|
*/
|
|
public function phoneNumber(string $code)
|
|
{
|
|
$params = [
|
|
'code' => $code
|
|
];
|
|
return $this->httpPostJson('wxa/business/getuserphonenumber', $params);
|
|
}
|
|
} |