代码提交

This commit is contained in:
wong
2025-07-10 17:23:46 +08:00
parent 6392b99e13
commit 7276f787d8
3 changed files with 40 additions and 4 deletions

View File

@@ -23,9 +23,11 @@ class PosterWeChatMiniProgram extends Controller
// 生成小程序码,存客宝-操盘手调用
public function generateMiniProgramCodeWithScene() {
public function generateMiniProgramCodeWithScene($taskId = '') {
$taskId = request()->param('id');
if(empty($taskId)) {
$taskId = request()->param('id');
}
$app = Factory::miniProgram(self::MINI_PROGRAM_CONFIG);
@@ -105,7 +107,7 @@ class PosterWeChatMiniProgram extends Controller
}
// return $result['phone_info']['phoneNumber'];
return json([
'code' => 0,
'code' => 200,
'message' => '获取手机号成功',
'data' => $result['phone_info']['phoneNumber']
]);
@@ -160,7 +162,7 @@ class PosterWeChatMiniProgram extends Controller
// todo 只需 返回 poster_url success_tip
return json([
'code' => 10000,
'code' => 200,
'message' => '获取海报获客任务数据成功',
'data' => $data
]);