代码提交
This commit is contained in:
@@ -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
|
||||
]);
|
||||
|
||||
Reference in New Issue
Block a user