diff --git a/addon/fenxiao/config/diy_view.php b/addon/fenxiao/config/diy_view.php index f960fad..9c718c7 100644 --- a/addon/fenxiao/config/diy_view.php +++ b/addon/fenxiao/config/diy_view.php @@ -88,7 +88,7 @@ return [ [ 'name' => 'PROMOTION_POSTER', 'title' => '推广海报', - 'wap_url' => '/pages_promotion/fenxiao/promote_code', + 'wap_url' => '/pages_promotion/fenxiao/promote_code?templateId=1', 'web_url' => '', 'sort' => 0 ], diff --git a/app/api/controller/Tripartite.php b/app/api/controller/Tripartite.php index 2531a7d..cbf1ce4 100644 --- a/app/api/controller/Tripartite.php +++ b/app/api/controller/Tripartite.php @@ -112,4 +112,16 @@ class Tripartite extends BaseApi } return $this->response($res); } + + /** + * 获取手机号 + * @return false|string + */ + public function getPhoneNumber() + { + $decrypt_data = event('DecryptData', $this->params, true); + if ($decrypt_data[ 'code' ] < 0) return $this->response($decrypt_data); + + return $this->response(success(0, '', [ 'mobile' => $decrypt_data[ 'data' ][ 'purePhoneNumber' ] ])); + } } \ No newline at end of file