mirror of
https://github.com/OpenFlutter/fluwx.git
synced 2026-03-13 09:01:38 +08:00
fix #735
This commit is contained in:
@@ -16,9 +16,9 @@
|
||||
* License for the specific language governing permissions and limitations under
|
||||
* the License.
|
||||
*/
|
||||
import 'package:fluwx/fluwx.dart';
|
||||
import 'package:plugin_platform_interface/plugin_platform_interface.dart';
|
||||
|
||||
import '../../fluwx.dart';
|
||||
import 'fluwx_method_channel.dart';
|
||||
|
||||
abstract class FluwxPlatform extends PlatformInterface {
|
||||
|
||||
@@ -112,7 +112,17 @@ export class FluwxShareHandler {
|
||||
const miniProgramObject = new wxopensdk.WXMiniProgramObject()
|
||||
miniProgramObject.userName = call.argument("userName")
|
||||
miniProgramObject.path = call.argument("path")
|
||||
miniProgramObject.miniprogramType = wxopensdk.WXMiniProgramType.RELEASE
|
||||
|
||||
let miniProgramType = wxopensdk.WXMiniProgramType.RELEASE
|
||||
|
||||
let miniProgramTypeInt: number = call.argument("miniProgramType")
|
||||
if (miniProgramTypeInt === 1) {
|
||||
miniProgramType = wxopensdk.WXMiniProgramType.TEST
|
||||
} else if (miniProgramType === 2) {
|
||||
miniProgramType = wxopensdk.WXMiniProgramType.PREVIEW
|
||||
}
|
||||
|
||||
miniProgramObject.miniprogramType = miniprogramType
|
||||
|
||||
const mediaMessage = new wxopensdk.WXMediaMessage()
|
||||
mediaMessage.mediaObject = miniProgramObject
|
||||
|
||||
Reference in New Issue
Block a user